Skip to content

Commit

Permalink
power: wl_blocker: fix permissions for version_show
Browse files Browse the repository at this point in the history
Use only read permissions for version_show.

Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
Signed-off-by: Little-W <1405481963@qq.com>
  • Loading branch information
evdenis authored and toraidl committed Mar 5, 2024
1 parent 0fb9d3a commit ced33ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/base/power/boeffla_wl_blocker.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ static ssize_t version_show(struct device *dev, struct device_attribute *attr, c
/*****************************************/

// define objects
static DEVICE_ATTR(wakelock_blocker, 0644, wakelock_blocker_show, wakelock_blocker_store);
static DEVICE_ATTR(wakelock_blocker_default, 0644, wakelock_blocker_default_show, wakelock_blocker_default_store);
static DEVICE_ATTR(debug, 0664, debug_show, debug_store);
static DEVICE_ATTR(version, 0664, version_show, NULL);
static DEVICE_ATTR_RW(wakelock_blocker);
static DEVICE_ATTR_RW(wakelock_blocker_default);
static DEVICE_ATTR_RW(debug);
static DEVICE_ATTR_RO(version);

// define attributes
static struct attribute *boeffla_wl_blocker_attributes[] = {
Expand Down

0 comments on commit ced33ae

Please sign in to comment.