OSDN Git Service

misc: eeprom: at24: support pm_runtime control
authorBibby Hsieh <bibby.hsieh@mediatek.com>
Thu, 23 Jan 2020 11:52:57 +0000 (12:52 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 23 Jan 2020 11:52:57 +0000 (12:52 +0100)
commitcd5676db0574cc1c0b234bc3b17565b07290aa72
tree33206e3fd7f9767618923154b5fd638cc835a9f0
parentc6cadc7538bb6df746f1613ee317b646230b2f5e
misc: eeprom: at24: support pm_runtime control

Although in the most platforms, the power of eeprom are alway
on, some platforms disable the eeprom power in order to meet
low power request. This patch add the pm_runtime ops to control
power to support all platforms.

Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com>
[Bartosz: rebased on top of current at24/for-next]
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/misc/eeprom/at24.c