From b7e358d29eedc2a1ac247aa3a7c5f76ce386a150 Mon Sep 17 00:00:00 2001 From: ywj Date: Mon, 20 Aug 2012 11:29:51 +0800 Subject: [PATCH] amend DEVICE_ATTR 0660 of rk29_keys and rk29_backlight factorytool --- drivers/input/keyboard/rk29_keys.c | 4 ++-- drivers/video/backlight/rk29_backlight.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/keyboard/rk29_keys.c b/drivers/input/keyboard/rk29_keys.c index 1fc354b1d2f7..bc67d41c4964 100755 --- a/drivers/input/keyboard/rk29_keys.c +++ b/drivers/input/keyboard/rk29_keys.c @@ -114,12 +114,12 @@ static ssize_t rk29key_set(struct device *dev, } for(i=0;i<7;i++) - printk("desc=%s, code=%d\n",pdata->buttons[i].desc,pdata->buttons[i].code); + key_dbg("desc=%s, code=%d\n",pdata->buttons[i].desc,pdata->buttons[i].code); return 0; } -static DEVICE_ATTR(rk29key,0777, NULL, rk29key_set); +static DEVICE_ATTR(rk29key,0660, NULL, rk29key_set); void rk29_send_power_key(int state) { diff --git a/drivers/video/backlight/rk29_backlight.c b/drivers/video/backlight/rk29_backlight.c index 6ea850f95725..9aa6cd5c2b27 100755 --- a/drivers/video/backlight/rk29_backlight.c +++ b/drivers/video/backlight/rk29_backlight.c @@ -88,7 +88,7 @@ static ssize_t backlight_read(struct device *dev, printk("rk29_bl_info->min_brightness=%d\n",rk29_bl_info->min_brightness); } -static DEVICE_ATTR(rk29backlight, 0777, backlight_read, backlight_write); +static DEVICE_ATTR(rk29backlight, 0660, backlight_read, backlight_write); static int rk29_bl_update_status(struct backlight_device *bl) { -- 2.34.1