Browse Source

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>
Clemens Gruber 8 years ago
parent
commit
b502a926d2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/hwmon/mcp3021.c

+ 1 - 1
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)