Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1518326 > unrolled thread

[PATCH v3 3/3] hwmon: (mcp3021) replace S_IRUGO with 0444

Started byClemens Gruber <clemens.gruber@pqgruber.com>
First post2016-11-09 18:20 +0100
Last post2016-11-09 18:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v3 3/3] hwmon: (mcp3021) replace S_IRUGO with 0444 Clemens Gruber <clemens.gruber@pqgruber.com> - 2016-11-09 18:20 +0100

#1518326 — [PATCH v3 3/3] hwmon: (mcp3021) replace S_IRUGO with 0444

FromClemens Gruber <clemens.gruber@pqgruber.com>
Date2016-11-09 18:20 +0100
Subject[PATCH v3 3/3] hwmon: (mcp3021) replace S_IRUGO with 0444
Message-ID<sBEHw-1NJ-27@gated-at.bofh.it>
Replace S_IRUGO with the better readable 0444.
This fixes a checkpatch warning.

Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
---
 drivers/hwmon/mcp3021.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hwmon/mcp3021.c b/drivers/hwmon/mcp3021.c
index 81f4b7f..3a007ab 100644
--- a/drivers/hwmon/mcp3021.c
+++ b/drivers/hwmon/mcp3021.c
@@ -102,7 +102,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)
-- 
2.10.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web