From: Stuart Henderson Date: Tue, 8 Aug 2017 08:05:09 +0000 (+0100) Subject: extcon: madera: Use octal permissions for device attributes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=911d39bacafa52c429f5c7be1fb04694d7c899af;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git extcon: madera: Use octal permissions for device attributes Change-Id: I49203c9f83f83be24584e55a9ac4a4ccb2132eef Signed-off-by: Stuart Henderson --- diff --git a/drivers/extcon/extcon-madera.c b/drivers/extcon/extcon-madera.c index d96a12151d0e..8df896d691ba 100644 --- a/drivers/extcon/extcon-madera.c +++ b/drivers/extcon/extcon-madera.c @@ -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)