FAILED: patch "[PATCH] iio: cdc: ad7150: fix OF matching and publish module aliases" failed to apply to 5.15-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 5.15-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.15.y
git checkout FETCH_HEAD
git cherry-pick -x 52da294027f53e7084c18dd4b4f73354a40382f3
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026100634-lifting-faceted-daeb@gregkh' --subject-prefix 'PATCH 5.15.y' 'HEAD^..'
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 52da294027f53e7084c18dd4b4f73354a40382f3 Mon Sep 17 00:00:00 2001
From: Pengpeng Hou <[email protected]>
Date: Sun, 20 Sep 2026 11:33:03 +0800
Subject: [PATCH] iio: cdc: ad7150: fix OF matching and publish module aliases
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.
drivers/iio/cdc/ad7150.c +5 -3
@@ -636,11 +636,13 @@ static const struct i2c_device_id ad7150_id[] = {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" ,