Skip to contentSkip to conversation

patch "iio: dac: ad5446: fix OF module device table" added to char-misc-testing

PATCH [email protected] 1 participant 1 message Aug 19

Subsystems (4)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

iio: dac: ad5446: fix OF module device table

to my char-misc git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
in the char-misc-testing branch.

The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)

The patch will be merged to the char-misc-next branch sometime soon, after it passes testing, and the merge window is open.

If you have any questions about this process, please let me know.

From a3c03cf36a083893dedad928915471dc8c10692e Mon Sep 17 00:00:00 2001
From: Can Peng <[email protected]>
Date: Tue, 14 Jul 2026 17:18:45 +0800
Subject: iio: dac: ad5446: fix OF module device table

The ad5446 I2C driver exports its OF match table with MODULE_DEVICE_TABLE(OF, ...).

The device table type is used by modpost when generating module aliases, and scripts/mod/file2alias.c matches the lowercase "of" type. Using "OF" prevents the OF table from being recognized, so no OF module alias is generated for the I2C driver.

Use the lowercase "of" type so OF-based module autoloading works.

Fixes 876d94024087 ("iio: dac: ad5446: Separate I2C/SPI into different drivers")
---
 drivers/iio/dac/ad5446-i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/dac/ad5446-i2c.c +1 -1
index 2d4c8908d91e..cb3100fa32d9 100644
@@ -84,7 +84,7 @@ static const struct of_device_id ad5446_i2c_of_ids[] = {
 	{ .compatible = "adi,ad5622", .data = &ad5622_chip_info },
 	{ }
 };
-MODULE_DEVICE_TABLE(OF, ad5446_i2c_of_ids);
+MODULE_DEVICE_TABLE(of, ad5446_i2c_of_ids);
 
 static struct i2c_driver ad5446_i2c_driver = {
 	.driver = {
Signature · 1 line
2.55.0