Commit 127d2868 authored by Geliang Tang's avatar Geliang Tang Committed by Sebastian Reichel

power: generic-adc-battery: use to_delayed_work

Use to_delayed_work() instead of open-coding it.
Signed-off-by: default avatarGeliang Tang <geliangtang@163.com>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent 88025632
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment