hwmon: (hih6130) Fix missing hih6130->write_length setting
PATCH 1/1 hwmon: (hih6130) Fix missing hih6130->write_length setting
The hih6130->write_length setting was accidently removed by commit ebc6b9383f3e "hwmon: (hih6130) Convert to devm_hwmon_device_register_with_groups", fix it.
Signed-off-by Axel Lin <[email protected]>
--- drivers/hwmon/hih6130.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/hwmon/hih6130.c +3 -0
@@ -238,6 +238,9 @@ static int hih6130_probe(struct i2c_client *client, hih6130->client = client;mutex_init (&hih6130->lock); +if (!i2c_check_functionality (client->adapter,I2C_FUNC_SMBUS_QUICK )) + hih6130->write_length =1 ; + hwmon_dev =devm_hwmon_device_register_with_groups (dev, client->name, hih6130, hih6130_groups);
Signature · 9 lines
1.9.1 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 6 lines · Axel Lin
The
hih6130->write_lengthsetting was accidently removed by commitebc6b9383f3e"hwmon: (hih6130) Convert todevm_hwmon_device_register_with_groups", fix it.Signed-off-by Axel Lin <[email protected]>---
Applied.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors