diff options
author | 2016-02-13 02:04:02 +0530 | |
---|---|---|
committer | 2016-02-12 23:01:32 -0800 | |
commit | a821adb47d28e22f96716b0ab8c4a8d5f7d3dadb (patch) | |
tree | 5a603f73bd9191bbc3e9025d5c643d0dc71f8cdb /drivers/staging/greybus/arche_platform.h | |
parent | greybus: raw: fix memory leak on disconnect (diff) | |
download | linux-dev-a821adb47d28e22f96716b0ab8c4a8d5f7d3dadb.tar.xz linux-dev-a821adb47d28e22f96716b0ab8c4a8d5f7d3dadb.zip |
greybus: arche-platform: make apb_state common to both platform drivers
Make 'enum apb_state' common to both platform drivers, so that
both drivers can make use of same state and user will have
unified control configuration across devices (SVC, APB1 and APB2)
Testing Done: Tested on EVT1.2 and DB3.5 platform.
Signed-off-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/arche_platform.h')
-rw-r--r-- | drivers/staging/greybus/arche_platform.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/staging/greybus/arche_platform.h b/drivers/staging/greybus/arche_platform.h index 22a968a9197e..33c4bb8bca93 100644 --- a/drivers/staging/greybus/arche_platform.h +++ b/drivers/staging/greybus/arche_platform.h @@ -10,6 +10,12 @@ #ifndef __ARCHE_PLATFORM_H #define __ARCHE_PLATFORM_H +enum arche_platform_state { + ARCHE_PLATFORM_STATE_OFF, + ARCHE_PLATFORM_STATE_ACTIVE, + ARCHE_PLATFORM_STATE_STANDBY, +}; + int arche_apb_ctrl_probe(struct platform_device *pdev); int arche_apb_ctrl_remove(struct platform_device *pdev); extern const struct dev_pm_ops arche_apb_ctrl_pm_ops; |