hwmon: (amc6821) Fix permissions for temp2_input
PATCH 1/1 hwmon: (amc6821) Fix permissions for temp2_input
temp2_input should not be writable, fix it.
Reported-by Guenter Roeck <[email protected]>
Signed-off-by Axel Lin <[email protected]>
--- drivers/hwmon/amc6821.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/amc6821.c +1 -1
@@ -743,7 +743,7 @@ static SENSOR_DEVICE_ATTR(temp1_max_alarm, S_IRUGO, get_temp_alarm, NULL, IDX_TEMP1_MAX); static SENSOR_DEVICE_ATTR(temp1_crit_alarm, S_IRUGO, get_temp_alarm, NULL, IDX_TEMP1_CRIT); -static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO | S_IWUSR, +static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO, get_temp, NULL, IDX_TEMP2_INPUT); static SENSOR_DEVICE_ATTR(temp2_min, S_IRUGO | S_IWUSR, get_temp, set_temp, IDX_TEMP2_MIN);
Signature · 9 lines
1.9.1 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 4 lines · Axel Lin
temp2_inputshould not be writable, fix it.Reported-by Guenter Roeck <[email protected]>Signed-off-by Axel Lin <[email protected]>
Applied to -next.
Thanks a lot!
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors