Skip to content

Commit

Permalink
drivers/video/backlight/s6e63m0.c: set permissions on gamma_table fil…
Browse files Browse the repository at this point in the history
…e to 0444

gamma_table is not writable, so set permissions to 0444.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Richard Purdie <rpurdie@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Axel Lin authored and Linus Torvalds committed Nov 12, 2010
1 parent 25672b9 commit ed3a678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/backlight/s6e63m0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ed3a678

Please sign in to comment.