]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: img: Add suspend / resume handling
authorEd Blake <ed.blake@sondrel.com>
Mon, 2 Oct 2017 09:51:47 +0000 (10:51 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 15 Nov 2017 09:38:04 +0000 (10:38 +0100)
commite3179e61067bab238d9eda96d6a9d8f2f96d67aa
tree7bab12668eb638bc68806675f9a5fca78c90cb42
parent384fde7ed224f283f11ef2a592b05d4a29492aa8
pwm: img: Add suspend / resume handling

The power may be disabled during suspend, so implement suspend and
resume callbacks to save and restore register state.

Signed-off-by: Ed Blake <ed.blake@sondrel.com>
[thierry.reding@gmail.com: guard using PM_SLEEP instead of PM]
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-img.c