diff options
author | Andreas Kemnade <andreas@kemnade.info> | 2018-12-27 10:13:48 -0500 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2019-02-18 17:23:29 -0500 |
commit | 89bff8c2a07eb1185ec57725a9ce8dc0db2381a5 (patch) | |
tree | ebd532e4ed334449f46488063f43a4498b1fae5a /drivers/hwmon/hih6130.c | |
parent | 1bb46a20e73b0bb3364cff3839c9f716ed327770 (diff) |
hwmon: (hih6130) add dtb compatibility tables
This allows the hih6130 to be used in devicetree files and auto-probed
that way.
Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/hih6130.c')
-rw-r--r-- | drivers/hwmon/hih6130.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/hwmon/hih6130.c b/drivers/hwmon/hih6130.c index 0ae1ee1dbf76..de1b50ddc740 100644 --- a/drivers/hwmon/hih6130.c +++ b/drivers/hwmon/hih6130.c | |||
@@ -254,8 +254,17 @@ static const struct i2c_device_id hih6130_id[] = { | |||
254 | }; | 254 | }; |
255 | MODULE_DEVICE_TABLE(i2c, hih6130_id); | 255 | MODULE_DEVICE_TABLE(i2c, hih6130_id); |
256 | 256 | ||
257 | static const struct of_device_id hih6130_of_match[] = { | ||
258 | { .compatible = "honeywell,hih6130", }, | ||
259 | { } | ||
260 | }; | ||
261 | MODULE_DEVICE_TABLE(of, hih6130_of_match); | ||
262 | |||
257 | static struct i2c_driver hih6130_driver = { | 263 | static struct i2c_driver hih6130_driver = { |
258 | .driver.name = "hih6130", | 264 | .driver = { |
265 | .name = "hih6130", | ||
266 | .of_match_table = of_match_ptr(hih6130_of_match), | ||
267 | }, | ||
259 | .probe = hih6130_probe, | 268 | .probe = hih6130_probe, |
260 | .id_table = hih6130_id, | 269 | .id_table = hih6130_id, |
261 | }; | 270 | }; |