[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1277282959.6749.1.camel@mola>
Date: Wed, 23 Jun 2010 16:49:19 +0800
From: Axel Lin <axel.lin@...il.com>
To: linux-kernel <linux-kernel@...r.kernel.org>
Cc: Richard Purdie <rpurdie@...ys.net>,
Andrew Morton <akpm@...ux-foundation.org>,
InKi Dae <inki.dae@...sung.com>,
Randy Dunlap <randy.dunlap@...cle.com>
Subject: [PATCH] s6e63m0: set permissions on gamma_table file to 0444
gamma_table is not writable, thus set permissions to 0444.
Signed-off-by: Axel Lin <axel.lin@...il.com>
---
drivers/video/backlight/s6e63m0.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/video/backlight/s6e63m0.c b/drivers/video/backlight/s6e63m0.c
index a3128c9..2d83286 100644
--- a/drivers/video/backlight/s6e63m0.c
+++ b/drivers/video/backlight/s6e63m0.c
@@ -729,7 +729,7 @@ static ssize_t s6e63m0_sysfs_show_gamma_table(struct device *dev,
return strlen(buf);
}
-static DEVICE_ATTR(gamma_table, 0644,
+static DEVICE_ATTR(gamma_table, 0444,
s6e63m0_sysfs_show_gamma_table, NULL);
static int __init s6e63m0_probe(struct spi_device *spi)
--
1.5.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists