mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
power: generic-adc-battery: use to_delayed_work
Use to_delayed_work() instead of open-coding it. Signed-off-by: Geliang Tang <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
This commit is contained in:
parent
8802563251
commit
127d286848
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue