From nobody Sat Sep 26 01:55:04 2026 Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1548A36728B; Sat, 5 Sep 2026 13:40:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=117.135.210.2 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788615605; cv=none; b=lD5AD/okUsPEzW7/oIYBlJs0F0nq16xsL89FVfpPmT0hvqUYR7bDUItI74TGCWaHwFpk71yML3vv5GTEUVm/f5uQ252DZIuAJ0ngQ0qtDhiT7WkXzgVs4h9p/5D/T4XuDaSg3Nc5bonGWskWsZpyeUvX8xUgCod+wbOuLfoUvBE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788615605; c=relaxed/simple; bh=6CC5ySQF3fs8cgknQ8tNJnwua2n/QL4nwl82goBaMws=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=e/LOlCIIesOmodK1fCQRc10n6EIGT6ec77SJcYIaIuP7HLbCdOczFzkMec8Wr51vfMbH5e3QlAiR5rl90xpaYIzMi4GXEcFZSzQp1x+ikEsnpyZ8uHC/f8ZVR7/tN1eg2/3Kd0iB6ELLcW172Ov7opUl3fdCKoRSPzD6B00TYfw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=KBdpJCZC; arc=none smtp.client-ip=117.135.210.2 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="KBdpJCZC" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=Tz TBptFZYg9+VFT1PVPN+bck6iwxRVwubrXxsauM0q8=; b=KBdpJCZCxyCJUJEzOZ sMpWxAUwFuZmzFGs8br3APN8zVn9yLAfb6e8f8KoMgAD5ywpgUcbkJdM2GmxYUVY YBx4ToUecfwdguc1xeqI5w85YwPUjF3jc+AUQEi0djI1W8TV5RirMdmhvLTCTu5r 2SKiNAORW9wlLqPJFs++lq8aI= Received: from localhost.localdomain (unknown []) by gzga-smtp-mtada-g1-0 (Coremail) with SMTP id _____wB38SadG5xqgvBWAw--.7336S2; Sat, 05 Sep 2026 21:39:42 +0800 (CST) From: "hpp.iscas" To: Nuno =?utf-8?q?S=C3=A1?= Cc: "hpp.iscas" , Michael Hennerich , Jonathan Cameron , David Lechner , Andy Shevchenko , linux@analog.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] iio: cdc: ad7150: fix OF matching and publish module aliases Date: Sat, 5 Sep 2026 21:39:39 +0800 Message-ID: <20260905133939.66210-1-hppiscas@163.com> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: _____wB38SadG5xqgvBWAw--.7336S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7Kr1DJr13ZF4Uur17WFW8Xrb_yoW8JFWUpF 4DZFyFkr15KFWa9a4jvF18uF98G3Z3A3s0kr4UGw4fuws8GFyUZFWvkaySkr98XFWrGan3 Xr4jyr47uan7AFJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UqYL9UUUUU= X-CM-SenderInfo: 5kssx2xfdvqiywtou0bp/xtbCxh6veGqcG54jzgAA3R Content-Type: text/plain; charset="utf-8" The positional initializers in ad7150_of_match populate the name member of struct of_device_id, not compatible. Consequently the table does not match the compatible properties documented for AD7150, AD7151 and AD7156. The table is also absent from the module alias metadata. Use designated compatible initializers and publish the corrected table. Keep the existing I2C ID fallback and per-device driver data unchanged. Fixes: 89f2d5b080bc ("staging:iio:cdc:ad7150: Add of_match_table") Signed-off-by: hpp.iscas --- drivers/iio/cdc/ad7150.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/iio/cdc/ad7150.c b/drivers/iio/cdc/ad7150.c index 2f35c6d..b36ac4e 100644 --- a/drivers/iio/cdc/ad7150.c +++ b/drivers/iio/cdc/ad7150.c @@ -636,11 +636,13 @@ static const struct i2c_device_id ad7150_id[] =3D { MODULE_DEVICE_TABLE(i2c, ad7150_id); =20 static const struct of_device_id ad7150_of_match[] =3D { - { "adi,ad7150" }, - { "adi,ad7151" }, - { "adi,ad7156" }, + { .compatible =3D "adi,ad7150" }, + { .compatible =3D "adi,ad7151" }, + { .compatible =3D "adi,ad7156" }, { } }; +MODULE_DEVICE_TABLE(of, ad7150_of_match); + static struct i2c_driver ad7150_driver =3D { .driver =3D { .name =3D "ad7150",