amend DEVICE_ATTR 0660 of rk29_keys and rk29_backlight factorytool

This commit is contained in:
ywj 2012-08-20 11:29:51 +08:00
parent 28e07bcda6
commit b7e358d29e
2 changed files with 3 additions and 3 deletions

View File

@ -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)
{

View File

@ -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)
{