Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed3a6787 authored by Axel Lin's avatar Axel Lin Committed by Linus Torvalds
Browse files

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: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarRichard Purdie <rpurdie@linux.intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 25672b9d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -729,7 +729,7 @@ static ssize_t s6e63m0_sysfs_show_gamma_table(struct device *dev,


	return strlen(buf);
	return strlen(buf);
}
}
static DEVICE_ATTR(gamma_table, 0644,
static DEVICE_ATTR(gamma_table, 0444,
		s6e63m0_sysfs_show_gamma_table, NULL);
		s6e63m0_sysfs_show_gamma_table, NULL);


static int __init s6e63m0_probe(struct spi_device *spi)
static int __init s6e63m0_probe(struct spi_device *spi)