diff options
author | Clemens Gruber <clemens.gruber@pqgruber.com> | 2016-11-09 18:16:14 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2016-12-02 22:28:11 +0100 |
commit | b502a926d29ed23eb7f6d61a89f6fb5d9b742b3e (patch) | |
tree | 544faa70e7ef0bd5bbbe493a0de95198ac6aec66 /drivers/hwmon/mcp3021.c | |
parent | hwmon: (mcp3021) add devicetree bindings documentation (diff) | |
download | linux-b502a926d29ed23eb7f6d61a89f6fb5d9b742b3e.tar.xz linux-b502a926d29ed23eb7f6d61a89f6fb5d9b742b3e.zip |
hwmon: (mcp3021) replace S_IRUGO with 0444
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>
Diffstat (limited to 'drivers/hwmon/mcp3021.c')
-rw-r--r-- | drivers/hwmon/mcp3021.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/mcp3021.c b/drivers/hwmon/mcp3021.c index 972444a14cca..7225d24e52ae 100644 --- 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) |