projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10de07f
)
hwmon: (mcp3021) replace S_IRUGO with 0444
author
Clemens Gruber
<clemens.gruber@pqgruber.com>
Wed, 9 Nov 2016 17:16:14 +0000
(18:16 +0100)
committer
Guenter Roeck
<linux@roeck-us.net>
Fri, 2 Dec 2016 21:28:11 +0000
(13:28 -0800)
Replace S_IRUGO with the better readable 0444.
This fixes a checkpatch warning.
Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/mcp3021.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/mcp3021.c
b/drivers/hwmon/mcp3021.c
index 972444a14cca5feb333c5244fd438fbb435f1e7e..7225d24e52aeb3d19b54140e920a32cdf811445d 100644
(file)
--- a/
drivers/hwmon/mcp3021.c
+++ b/
drivers/hwmon/mcp3021.c
@@
-99,7
+99,7
@@
static ssize_t show_in_input(struct device *dev, struct device_attribute *attr,
return sprintf(buf, "%d\n", in_input);
}
-static DEVICE_ATTR(in0_input,
S_IRUGO
, show_in_input, NULL);
+static DEVICE_ATTR(in0_input,
0444
, show_in_input, NULL);
static int mcp3021_probe(struct i2c_client *client,
const struct i2c_device_id *id)