From: Axel Lin Date: Thu, 11 Nov 2010 22:05:25 +0000 (-0800) Subject: drivers/video/backlight/s6e63m0.c: set permissions on gamma_table file to 0444 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ed3a6787bfff125a7aee88e5be0e0661887dfd15;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drivers/video/backlight/s6e63m0.c: set permissions on gamma_table file to 0444 gamma_table is not writable, so set permissions to 0444. Signed-off-by: Axel Lin Acked-by: Richard Purdie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/backlight/s6e63m0.c b/drivers/video/backlight/s6e63m0.c index a3128c9cb7ad..2d8328691df4 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)