summaryrefslogtreecommitdiffstats
path: root/include/linux/lis3lv02d.h
diff options
context:
space:
mode:
authorSamu Onkalo <samu.p.onkalo@nokia.com>2010-10-22 07:57:24 -0400
committerGuenter Roeck <guenter.roeck@ericsson.com>2010-10-25 14:11:38 -0700
commitf9deb41f91c41d9d91a24c84a555ec7fe82620da (patch)
treec301a8324c3bbc779b752cdf47236575a87a26d2 /include/linux/lis3lv02d.h
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 <samu.p.onkalo@nokia.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Eric Piel <eric.piel@tremplin-utc.net> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'include/linux/lis3lv02d.h')
-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 0e8a346424b..c4a4a52c1de 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 */