[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 3 Mar 2016 09:24:00 +0100
From: Martin Kepplinger <martink@...teo.de>
To: jic23@...nel.org, knaack.h@....de, lars@...afoo.de,
pmeerw@...erw.net, christoph.muellner@...obroma-systems.com,
mfuzzey@...keon.com
Cc: linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: iio: mma8452: power saving features for v4.7
The accelerometers supported by mma8452 can use significantly less power if
configured accordingly. Let's make use of this:
* add support for runtime power management
(disabling the device after 2 seconds of inactivity), and
* add a "power_modes" property to IIO sysfs, that offers a "low_power"
*active* mode of operation that roughly consumes half the power of
the default mode.
If you don't have CONFIG_PM enabled, by default nothing changes for you.
Here's how it's done and tested on MMA8653FC:
[PATCH 1/4] iio: mma8452: coding style fixes
[PATCH 2/4] iio: mma8452: avoid switching to active because of config
[PATCH 3/4] iio: mma8452: add support for runtime power management
[PATCH 4/4] iio: mma8452: add low_power mode
Powered by blists - more mailing lists