projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93a88ef
)
hwmon: (amc6821) Fix permissions for temp2_input
author
Axel Lin
<axel.lin@ingics.com>
Tue, 1 Jul 2014 23:44:44 +0000
(07:44 +0800)
committer
Guenter Roeck
<linux@roeck-us.net>
Thu, 3 Jul 2014 16:45:00 +0000
(09:45 -0700)
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>
Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/amc6821.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/amc6821.c
b/drivers/hwmon/amc6821.c
index eea81729651309b0598791d04778822e1f7cc7ff..9f2be3dd28f3007c557afd4683d053d8ff44a031 100644
(file)
--- a/
drivers/hwmon/amc6821.c
+++ b/
drivers/hwmon/amc6821.c
@@
-704,7
+704,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);