summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2016-01-01 17:59:11 +0300
committerSebastian Reichel <sre@kernel.org>2016-01-07 18:38:31 +0300
commit127d2868484b9769e08a8353e9e43023dcb8b9b3 (patch)
tree7e001b58fa7ad6298b3f2e317309dcf531bc87e9 /drivers/power
parent88025632515adfb7fcfac15d087f155b719e78cd (diff)
downloadlinux-127d2868484b9769e08a8353e9e43023dcb8b9b3.tar.xz
power: generic-adc-battery: use to_delayed_work
Use to_delayed_work() instead of open-coding it. Signed-off-by: Geliang Tang <geliangtang@163.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/generic-adc-battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/generic-adc-battery.c b/drivers/power/generic-adc-battery.c
index fedc5818fab7..edb36bf781b0 100644
--- a/drivers/power/generic-adc-battery.c
+++ b/drivers/power/generic-adc-battery.c
@@ -206,7 +206,7 @@ static void gab_work(struct work_struct *work)
bool is_plugged;
int status;
- delayed_work = container_of(work, struct delayed_work, work);
+ delayed_work = to_delayed_work(work);
adc_bat = container_of(delayed_work, struct gab, bat_work);
pdata = adc_bat->pdata;
status = adc_bat->status;