mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-07 10:29:52 +00:00
hwmon: (ds1621) Add DT compatible strings
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
This commit is contained in:
@@ -376,6 +376,16 @@ static const struct i2c_device_id ds1621_id[] = {
|
|||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, ds1621_id);
|
MODULE_DEVICE_TABLE(i2c, ds1621_id);
|
||||||
|
|
||||||
|
static const struct of_device_id ds1621_of_ids[] = {
|
||||||
|
{ .compatible = "dallas,ds1621", },
|
||||||
|
{ .compatible = "dallas,ds1625", },
|
||||||
|
{ .compatible = "dallas,ds1631", },
|
||||||
|
{ .compatible = "dallas,ds1721", },
|
||||||
|
{ .compatible = "dallas,ds1731", },
|
||||||
|
{ }
|
||||||
|
};
|
||||||
|
MODULE_DEVICE_TABLE(of, ds1621_of_ids);
|
||||||
|
|
||||||
/* This is the driver that will be inserted */
|
/* This is the driver that will be inserted */
|
||||||
static struct i2c_driver ds1621_driver = {
|
static struct i2c_driver ds1621_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
|
|||||||
Reference in New Issue
Block a user