mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:24:47 +01:00
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>
This commit is contained in:
parent
6ada8e2423
commit
e0784949c6
1 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue