From 4854507f1a5ed8c925b24f0ee5bd2b30c77fd782 Mon Sep 17 00:00:00 2001 From: notro Date: Sun, 2 Nov 2014 19:54:04 +0100 Subject: [PATCH] fbtft: change sysfs perm to build on 3.17 --- fbtft-sysfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fbtft-sysfs.c b/fbtft-sysfs.c index fb88232..45f8de3 100644 --- a/fbtft-sysfs.c +++ b/fbtft-sysfs.c @@ -147,7 +147,7 @@ static ssize_t show_gamma_curve(struct device *device, } static struct device_attribute gamma_device_attrs[] = { - __ATTR(gamma, S_IRUGO | S_IWUGO, show_gamma_curve, store_gamma_curve), + __ATTR(gamma, 0660, show_gamma_curve, store_gamma_curve), }; @@ -204,7 +204,7 @@ static ssize_t show_debug(struct device *device, } static struct device_attribute debug_device_attr = \ - __ATTR(debug, S_IRUGO | S_IWUGO, show_debug, store_debug); + __ATTR(debug, 0660, show_debug, store_debug); void fbtft_sysfs_init(struct fbtft_par *par)