Motor: ztm620: add pm_notifier 92/233192/1
authorjeongsup.jeong <jeongsup.jeong@samsung.com>
Tue, 20 Nov 2018 04:50:58 +0000 (13:50 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 7 May 2020 06:17:57 +0000 (15:17 +0900)
commitda6fe112af1299c29e1ef6069fdc05dc8562f9b9
tree7ce9ad94cee478f0e2099247894e4b919510eb87
parentecee731b00fad9dd97d883c82f13d7bef4e0ba33
Motor: ztm620: add pm_notifier

Add PM Notifier in order to control the state of motor device.
When PM_SUSPEND_PREPARE, disable the motor and in case of PM_POST_SUSPEND,
enable motor device. And do refactor the code for the readability.

Change-Id: I6e99c72ba4af08d614f8969a1bf9890614fe73b7
Signed-off-by: jeongsup.jeong <jeongsup.jeong@samsung.com>
[cw00.choi: Add commig-msg as the public style]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/motor/ztm620_motor.c
include/linux/ztm620_motor.h