EDP: psy depletion: use flush_delayed_work
flush_delayed_work should be used rather then
flush_delay_work_sync.
flush_delayed_work_sync just calls flush_delayed_work.
see workqueue.h
/nvidia/DEV_KERNEL/kernel/drivers/edp/psy_depletion.c
In function 'capacity_set':
nvidia/DEV_KERNEL/kernel/drivers/edp/psy_depletion.c:280:2:
warning: 'flush_delayed_work_sync' is deprecated
(declared at
/nvidia/DEV_KERNEL/kernel/include/linux/workqueue.h:454)
[-Wdeprecated-declarations]
/nvidia/DEV_KERNEL/kernel/drivers/edp/psy_depletion.c:
In function 'vsysmin_set'
/nvidia/DEV_KERNEL/kernel/drivers/edp/psy_depletion.c:297:2:
warning: 'flush_delayed_work_sync' is deprecated
(declared at
/nvidia/DEV_KERNEL/kernel/include/linux/workqueue.h:454)
[-Wdeprecated-declarations]
Change-Id: Ib6ee73feb40560aa5eb9b8941047e5313ac3aaa9
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/278887
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
(cherry picked from commit
1ad8994d893cf805e84988a4f1077250f90957bb)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>