greybus: HID: Add runtime pm support
authorPhilip Yang <yang_philip@projectara.com>
Fri, 22 Jul 2016 21:48:14 +0000 (05:48 +0800)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 22 Jul 2016 22:25:18 +0000 (15:25 -0700)
commit43c85a09b12cd3e782ae237be9903fef4559cc0d
tree7226fa73489a1326f54710bdf439162c9902b3e1
parent68793c4c8824a0b1e0cb89737c5919a0b10d70cf
greybus: HID: Add runtime pm support

Modify HID greybus driver to support runtime PM framework.
The suspend and resume fucntion have been test with tutorial-hid,
e-ink-display and gpbridge-test image by sysfs resume, all HID
buttons work well on suspend/resume.

Testing Done: Compiled and verified on EVT2, DB3.5, GPB test module
              with daughter board, Red module.

Signed-off-by: Philip Yang <yang_philip@projectara.com>
Reviewed-by: David Lin <dtwlin@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/hid.c