aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSamu Onkalo <[email protected]>2010-10-22 07:57:24 -0400
committerGuenter Roeck <[email protected]>2010-10-25 14:11:38 -0700
commitf9deb41f91c41d9d91a24c84a555ec7fe82620da (patch)
treec301a8324c3bbc779b752cdf47236575a87a26d2 /include/linux
parent2a346996626ecbb4269c239e9ff7372a182907e9 (diff)
hwmon: lis3: regulator control
Based on pm_runtime control, turn lis3 regulators on and off. Perform context save and restore on transitions. Feature is optional and must be enabled in platform data. Signed-off-by: Samu Onkalo <[email protected]> Acked-by: Jonathan Cameron <[email protected]> Acked-by: Eric Piel <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/lis3lv02d.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/lis3lv02d.h b/include/linux/lis3lv02d.h
index 0e8a346424bb..c4a4a52c1de7 100644
--- a/include/linux/lis3lv02d.h
+++ b/include/linux/lis3lv02d.h
@@ -64,6 +64,8 @@ struct lis3lv02d_platform_data {
s8 axis_x;
s8 axis_y;
s8 axis_z;
+#define LIS3_USE_REGULATOR_CTRL 0x01
+ u16 driver_features;
int (*setup_resources)(void);
int (*release_resources)(void);
/* Limits for selftest are specified in chip data sheet */