diff options
author | Naresh Solanki <naresh.solanki@9elements.com> | 2023-08-03 17:44:00 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2023-08-21 16:04:30 +0300 |
commit | f11e27383c1223620264044442b8abb23bdb1c9f (patch) | |
tree | 3755b2dbd24f7423ae98f88bcc8217d9bd696383 /drivers/hwmon/max6639.c | |
parent | b7f1f7b2523a6a4382f12fe953380b847b80e09d (diff) | |
download | linux-f11e27383c1223620264044442b8abb23bdb1c9f.tar.xz |
hwmon: (max6639) Add compatible string
Use maxim,max6639 as compatible string for the driver.
Signed-off-by: Naresh Solanki <Naresh.Solanki@9elements.com>
Link: https://lore.kernel.org/r/20230803144401.1151065-2-Naresh.Solanki@9elements.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/max6639.c')
-rw-r--r-- | drivers/hwmon/max6639.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/hwmon/max6639.c b/drivers/hwmon/max6639.c index caf527154fca..aa7f21ab2395 100644 --- a/drivers/hwmon/max6639.c +++ b/drivers/hwmon/max6639.c @@ -618,11 +618,17 @@ MODULE_DEVICE_TABLE(i2c, max6639_id); static DEFINE_SIMPLE_DEV_PM_OPS(max6639_pm_ops, max6639_suspend, max6639_resume); +static const struct of_device_id max6639_of_match[] = { + { .compatible = "maxim,max6639", }, + { }, +}; + static struct i2c_driver max6639_driver = { .class = I2C_CLASS_HWMON, .driver = { .name = "max6639", .pm = pm_sleep_ptr(&max6639_pm_ops), + .of_match_table = max6639_of_match, }, .probe = max6639_probe, .id_table = max6639_id, |