extcon: madera: Use octal permissions for device attributes
authorStuart Henderson <stuarth@opensource.wolfsonmicro.com>
Tue, 8 Aug 2017 08:05:09 +0000 (09:05 +0100)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:27 +0000 (20:22 +0300)
Change-Id: I49203c9f83f83be24584e55a9ac4a4ccb2132eef
Signed-off-by: Stuart Henderson <stuarth@opensource.wolfsonmicro.com>
drivers/extcon/extcon-madera.c

index d96a12151d0e7b4433b1b2973721547bb86a2607..8df896d691ba109c21e9cb8796937f49b129d213 100644 (file)
@@ -507,7 +507,7 @@ static ssize_t madera_extcon_show(struct device *dev,
                         info->madera->hp_impedance_x100[0]);
 }
 
-static DEVICE_ATTR(hp1_impedance, S_IRUGO, madera_extcon_show, NULL);
+static DEVICE_ATTR(hp1_impedance, 0444, madera_extcon_show, NULL);
 
 inline void madera_extcon_report(struct madera_extcon *info,
                                 int which, bool attached)