Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;