diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-02-15 11:57:13 -0500 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-02-19 20:34:16 -0500 |
commit | 54be068d19ccdad6864dd8a24c20885af26f851c (patch) | |
tree | 17a15adfe03919f3989758a01111e9a5705a214d /drivers/hwmon | |
parent | 436440fc166fd6127fc1e8e8415e7f2830dd9c5e (diff) |
hwmon: (adt7410) Use I2C_ADDRS helper macro
Use the I2C_ADDRS macro to initialize the I2C device's address_list. Doing so
saves a few lines of boilerplate code.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/adt7410.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/hwmon/adt7410.c b/drivers/hwmon/adt7410.c index 4ae16e05ca28..99f6d3239cba 100644 --- a/drivers/hwmon/adt7410.c +++ b/drivers/hwmon/adt7410.c | |||
@@ -78,10 +78,6 @@ enum adt7410_type { /* keep sorted in alphabetical order */ | |||
78 | adt7410, | 78 | adt7410, |
79 | }; | 79 | }; |
80 | 80 | ||
81 | /* Addresses scanned */ | ||
82 | static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b, | ||
83 | I2C_CLIENT_END }; | ||
84 | |||
85 | static const u8 ADT7410_REG_TEMP[4] = { | 81 | static const u8 ADT7410_REG_TEMP[4] = { |
86 | ADT7410_TEMPERATURE, /* input */ | 82 | ADT7410_TEMPERATURE, /* input */ |
87 | ADT7410_T_ALARM_HIGH, /* high */ | 83 | ADT7410_T_ALARM_HIGH, /* high */ |
@@ -453,7 +449,7 @@ static struct i2c_driver adt7410_driver = { | |||
453 | .probe = adt7410_probe, | 449 | .probe = adt7410_probe, |
454 | .remove = adt7410_remove, | 450 | .remove = adt7410_remove, |
455 | .id_table = adt7410_ids, | 451 | .id_table = adt7410_ids, |
456 | .address_list = normal_i2c, | 452 | .address_list = I2C_ADDRS(0x48, 0x49, 0x4a, 0x4b), |
457 | }; | 453 | }; |
458 | 454 | ||
459 | module_i2c_driver(adt7410_driver); | 455 | module_i2c_driver(adt7410_driver); |