From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 1D30430E828; Fri, 9 Oct 2026 14:54:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791557651; cv=none; b=WYx9UbdIxYTTFv3iFLO7+bW8JQ8az8TGYrR6T5bmd1ygztFS4gw5F7RO1VKnoMVqBYEncBGr/X344Z6aPYTzbayicak8nnjeTbTTT88Ve8f+FgpeZ5DIFYRdeJ5UMNwy323tKsppf+QpTw5H1owxSuoXALafvOg0ShXJ/uoOV4o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791557651; c=relaxed/simple; bh=nj8M19ws1fxk7vV76wVmsx+zK3rhF7CeE41lNHPmlVU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tLY01YtSt2aoFuUP1R5cAsjhiGeapd7YTWNYcTVU6PjgwF4vndZ5bkQvCijAUi1smxwj/WJhfoN8SG6r92GRjdcpM6df8+zR7uSzJgv1n4ujUkXURdbWdeOUMlzhuRTmvEGmdxZwj9V/NqnoKIvLTSQUoGP5oZ3DakBsBmBROuM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RQQHJT+c; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RQQHJT+c" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FEB91F000FF; Fri, 9 Oct 2026 14:54:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791557649; bh=X8gcvL8JxkNxYmVpfq6kv7FXA+fNES3u9Wlv2Fhtf9o=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=RQQHJT+cORCcSkXIc4HKrFUHW5WAqaWkXpwE11pk14GoJYZABpdC2RJg27mD33PG9 oUcJbLizfGpRorNyRiHfaQHhpaKoeJJh+km8Cr7K9aLE1HNecfAuPOUyFO1pZV28QG tFzP6Ah62F8F3Lhj8E1D/t8u+xw7GHGbswLmFaWw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Pengpeng Hou , Jonathan Cameron Subject: [PATCH 7.2 397/428] iio: cdc: ad7150: fix OF matching and publish module aliases Date: Fri, 9 Oct 2026 16:12:14 +0200 Message-ID: <20261009140954.932124281@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261009140946.008206689@linuxfoundation.org> References: <20261009140946.008206689@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.2-stable review patch. If anyone has any objections, please let me know. ------------------ From: Pengpeng Hou commit 52da294027f53e7084c18dd4b4f73354a40382f3 upstream. The OF match entries use positional initializers, which initialize the name field rather than compatible. Consequently the advertised AD7150, AD7151 and AD7156 compatible strings do not describe OF compatible matches. The table is also not exported for module alias generation. Use designated compatible initializers and publish the OF table. Keep the existing I2C ID table and its device-variant selection unchanged. The issue was found by our static-analysis tool. Fixes: 89f2d5b080bc ("staging:iio:cdc:ad7150: Add of_match_table") Assisted-by: LLM Cc: stable@vger.kernel.org Signed-off-by: Pengpeng Hou Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/cdc/ad7150.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) --- a/drivers/iio/cdc/ad7150.c +++ b/drivers/iio/cdc/ad7150.c @@ -636,11 +636,13 @@ static const struct i2c_device_id ad7150 MODULE_DEVICE_TABLE(i2c, ad7150_id); static const struct of_device_id ad7150_of_match[] = { - { "adi,ad7150" }, - { "adi,ad7151" }, - { "adi,ad7156" }, + { .compatible = "adi,ad7150" }, + { .compatible = "adi,ad7151" }, + { .compatible = "adi,ad7156" }, { } }; +MODULE_DEVICE_TABLE(of, ad7150_of_match); + static struct i2c_driver ad7150_driver = { .driver = { .name = "ad7150",