diff options
author | Geliang Tang <geliangtang@163.com> | 2016-01-01 22:59:11 +0800 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2016-01-07 16:38:31 +0100 |
commit | 127d2868484b9769e08a8353e9e43023dcb8b9b3 (patch) | |
tree | 7e001b58fa7ad6298b3f2e317309dcf531bc87e9 /drivers/power | |
parent | 88025632515adfb7fcfac15d087f155b719e78cd (diff) |
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.c | 2 |
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; |