OSDN Git Service

gpio: mvebu: add suspend/resume support
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 24 Oct 2014 11:59:19 +0000 (13:59 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 3 Nov 2014 13:28:03 +0000 (14:28 +0100)
commitb5b7b487431b01619f2947d91dadd7c7a233692e
treebc1bc9164747b69410948f154610530aa17d68e4
parent5bb5428956d3eecb428e72e7f521ff6ac767384b
gpio: mvebu: add suspend/resume support

This commit adds the implementation of ->suspend() and ->resume()
platform_driver hooks in order to save and restore the state of the
GPIO configuration. In order to achieve that, additional fields are
added to the mvebu_gpio_chip structure.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mvebu.c