]> asedeno.scripts.mit.edu Git - linux.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)
commita18afce522e8c469132e740f840f2b95b2008987
tree7bab12668eb638bc68806675f9a5fca78c90cb42
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
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