Skip to content

Commit

Permalink
Fix another mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
onkofonko committed Jan 5, 2020
1 parent 5374793 commit 094fd1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 5 additions & 3 deletions drivers/base/power/boeffla_wl_blocker.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
#include <linux/device.h>
#include <linux/miscdevice.h>
#include <linux/printk.h>


#include "boeffla_wl_blocker.h"


Expand All @@ -51,6 +49,7 @@ extern char list_wl_search[LENGTH_LIST_WL_SEARCH];
extern bool wl_blocker_active;
extern bool wl_blocker_debug;


/*****************************************/
// internal functions
/*****************************************/
Expand All @@ -68,7 +67,6 @@ static void build_search_string(char *list1, char *list2)
}



/*****************************************/
// sysfs interface functions
/*****************************************/
Expand All @@ -82,6 +80,7 @@ static ssize_t wakelock_blocker_show(struct device *dev, struct device_attribute
}


// store list of user configured wakelocks
static ssize_t wakelock_blocker_store(struct device * dev, struct device_attribute *attr,
const char * buf, size_t n)
{
Expand Down Expand Up @@ -125,6 +124,7 @@ static ssize_t wakelock_blocker_default_store(struct device * dev, struct device
return n;
}


// show debug information of driver internals
static ssize_t debug_show(struct device *dev, struct device_attribute *attr, char *buf)
{
Expand All @@ -133,6 +133,7 @@ static ssize_t debug_show(struct device *dev, struct device_attribute *attr, cha
wl_blocker_debug, list_wl, list_wl_default, list_wl_search, wl_blocker_active);
}


// store debug mode on/off (1/0)
static ssize_t debug_store(struct device *dev, struct device_attribute *attr,
const char *buf, size_t count)
Expand Down Expand Up @@ -168,6 +169,7 @@ 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);
Expand Down
1 change: 0 additions & 1 deletion drivers/base/power/wakeup.c
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,6 @@ static bool check_for_block(struct wakeup_source *ws)

if(strstr(list_wl_search, wakelock_name) == NULL)
return false;
}

// wake lock is in list, print it if debug mode on
if (wl_blocker_debug)
Expand Down

0 comments on commit 094fd1f

Please sign in to comment.