提交 127d2868 编写于 作者: G Geliang Tang 提交者: Sebastian Reichel

power: generic-adc-battery: use to_delayed_work

Use to_delayed_work() instead of open-coding it.
Signed-off-by: NGeliang Tang <geliangtang@163.com>
Signed-off-by: NSebastian Reichel <sre@kernel.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册