hwmon: (w83627ehf) Skip reading unused
PATCH 1/2 hwmon: (w83627ehf) Skip reading unused
When in6 is missing, don't read the corresponding registers, it's a waste of time. The logic is similar to what we do for fans and temperatures.
---
This patch and the following one have been sitting on my drive for too long, it's about time to get them reviewed and merged.
drivers/hwmon/w83627ehf.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/hwmon/w83627ehf.c +3 -0
@@ -770,6 +770,9 @@ static struct w83627ehf_data *w83627ehf_/* Measured voltages and limits */ for (i =0 ; i < data->in_num; i++) { +if ((i =6 ) && data->in6_skip) +continue ; + data->in[i] =w83627ehf_read_value (data,W83627EHF_REG_IN (i)); data->in_min[i] = w83627ehf_read_value(data,
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 5 lines · Jean Delvare
When in6 is missing, don't read the corresponding registers, it's a waste of time. The logic is similar to what we do for fans and temperatures.
Signed-off-by Jean Delvare <[email protected]>
Do you want me to apply this series of patches ?
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 8 lines · Guenter Roeck
Quoted 5 lines · Jean Delvare
When in6 is missing, don't read the corresponding registers, it's a waste of time. The logic is similar to what we do for fans and temperatures.
Signed-off-by Jean Delvare <[email protected]>Acked-by Guenter Roeck <[email protected]>
Thanks.
Quoted 1 line
Do you want me to apply this series of patches ?
Yes please!
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 8 lines · Jean Delvare
Quoted 7 lines · Guenter Roeck
Quoted 5 lines · Jean Delvare
When in6 is missing, don't read the corresponding registers, it's a waste of time. The logic is similar to what we do for fans and temperatures.
Signed-off-by Jean Delvare <[email protected]>
Quoted 8 lines
Quoted 1 line
Acked-by Guenter Roeck <[email protected]>Thanks.
Quoted 1 line
Do you want me to apply this series of patches ?
Yes please!
Both applied to -next. If you prefer to have it in 3.1, please let me know.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 11 lines · Guenter Roeck
Quoted 10 lines · Jean Delvare
Quoted 8 lines · Guenter Roeck
Quoted 5 lines · Jean Delvare
When in6 is missing, don't read the corresponding registers, it's a waste of time. The logic is similar to what we do for fans and temperatures.
Signed-off-by Jean Delvare <[email protected]>Acked-by Guenter Roeck <[email protected]>
Quoted 8 lines
Quoted 6 lines
Thanks.
Quoted 1 line
Do you want me to apply this series of patches ?
Yes please!
Both applied to -next. If you prefer to have it in 3.1, please let me know.
next is fine, thank you.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors