]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rtc: isl12026: Add id_table
authorAkhilesh Patil <akhilesh@ee.iitb.ac.in>
Sun, 9 Nov 2025 05:48:59 +0000 (11:18 +0530)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 8 Dec 2025 21:31:12 +0000 (22:31 +0100)
Add i2c id_table for isl12026 rtc.

Signed-off-by: Akhilesh Patil <akhilesh@ee.iitb.ac.in>
Link: https://patch.msgid.link/2025119-54859-2010914@bhairav-test.ee.iitb.ac.in
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-isl12026.c

index 2aabb9151d4c6c018d7101ec206d03897cff01d5..45a2c9f676c53f3e32f7d91a95352b6c8f62cd5d 100644 (file)
@@ -484,6 +484,12 @@ static const struct of_device_id isl12026_dt_match[] = {
 };
 MODULE_DEVICE_TABLE(of, isl12026_dt_match);
 
+static const struct i2c_device_id isl12026_id[] = {
+       { "isl12026" },
+       { },
+};
+MODULE_DEVICE_TABLE(i2c, isl12026_id);
+
 static struct i2c_driver isl12026_driver = {
        .driver         = {
                .name   = "rtc-isl12026",
@@ -491,6 +497,7 @@ static struct i2c_driver isl12026_driver = {
        },
        .probe          = isl12026_probe,
        .remove         = isl12026_remove,
+       .id_table       = isl12026_id,
 };
 
 module_i2c_driver(isl12026_driver);