Skip to content

Commit e078494

Browse files
Akhilesh Patilalexandrebelloni
authored andcommitted
rtc: isl12026: Add id_table
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>
1 parent 6ada8e2 commit e078494

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

drivers/rtc/rtc-isl12026.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,13 +484,20 @@ static const struct of_device_id isl12026_dt_match[] = {
484484
};
485485
MODULE_DEVICE_TABLE(of, isl12026_dt_match);
486486

487+
static const struct i2c_device_id isl12026_id[] = {
488+
{ "isl12026" },
489+
{ },
490+
};
491+
MODULE_DEVICE_TABLE(i2c, isl12026_id);
492+
487493
static struct i2c_driver isl12026_driver = {
488494
.driver = {
489495
.name = "rtc-isl12026",
490496
.of_match_table = isl12026_dt_match,
491497
},
492498
.probe = isl12026_probe,
493499
.remove = isl12026_remove,
500+
.id_table = isl12026_id,
494501
};
495502

496503
module_i2c_driver(isl12026_driver);

0 commit comments

Comments
 (0)