mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-25 11:55:37 +00:00
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>
This commit is contained in:
parent
b7f1f7b252
commit
f11e27383c
1 changed files with 6 additions and 0 deletions
|
@ -618,11 +618,17 @@ MODULE_DEVICE_TABLE(i2c, max6639_id);
|
||||||
|
|
||||||
static DEFINE_SIMPLE_DEV_PM_OPS(max6639_pm_ops, max6639_suspend, max6639_resume);
|
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 = {
|
static struct i2c_driver max6639_driver = {
|
||||||
.class = I2C_CLASS_HWMON,
|
.class = I2C_CLASS_HWMON,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "max6639",
|
.name = "max6639",
|
||||||
.pm = pm_sleep_ptr(&max6639_pm_ops),
|
.pm = pm_sleep_ptr(&max6639_pm_ops),
|
||||||
|
.of_match_table = max6639_of_match,
|
||||||
},
|
},
|
||||||
.probe = max6639_probe,
|
.probe = max6639_probe,
|
||||||
.id_table = max6639_id,
|
.id_table = max6639_id,
|
||||||
|
|
Loading…
Reference in a new issue