mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
hwmon: (amc6821) Fix permissions for temp2_input
commit df86754b74
upstream.
temp2_input should not be writable, fix it.
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f54e04114e
commit
5cc80fb26b
1 changed files with 1 additions and 1 deletions
|
@ -715,7 +715,7 @@ static SENSOR_DEVICE_ATTR(temp1_max_alarm, S_IRUGO,
|
||||||
get_temp_alarm, NULL, IDX_TEMP1_MAX);
|
get_temp_alarm, NULL, IDX_TEMP1_MAX);
|
||||||
static SENSOR_DEVICE_ATTR(temp1_crit_alarm, S_IRUGO,
|
static SENSOR_DEVICE_ATTR(temp1_crit_alarm, S_IRUGO,
|
||||||
get_temp_alarm, NULL, IDX_TEMP1_CRIT);
|
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);
|
get_temp, NULL, IDX_TEMP2_INPUT);
|
||||||
static SENSOR_DEVICE_ATTR(temp2_min, S_IRUGO | S_IWUSR, get_temp,
|
static SENSOR_DEVICE_ATTR(temp2_min, S_IRUGO | S_IWUSR, get_temp,
|
||||||
set_temp, IDX_TEMP2_MIN);
|
set_temp, IDX_TEMP2_MIN);
|
||||||
|
|
Loading…
Reference in a new issue