aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/arche_platform.h
diff options
context:
space:
mode:
authorVaibhav Hiremath <vaibhav.hiremath@linaro.org>2016-02-13 02:04:02 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2016-02-12 23:01:32 -0800
commita821adb47d28e22f96716b0ab8c4a8d5f7d3dadb (patch)
tree5a603f73bd9191bbc3e9025d5c643d0dc71f8cdb /drivers/staging/greybus/arche_platform.h
parentgreybus: raw: fix memory leak on disconnect (diff)
downloadlinux-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.h6
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;