mbox series

[0/1] iio: accel: bma400: add PM_SLEEP support

Message ID 20200715050226.9751-1-dan@dlrobertson.com (mailing list archive)
Headers show
Series iio: accel: bma400: add PM_SLEEP support | expand

Message

Dan Robertson July 15, 2020, 5:02 a.m. UTC
The following patch adds support for PM_SLEEP. I also added an attribute
for manually setting the power mode similar to what the BMA180 driver
provides. Feedback on this would be appreciated.

Cheers,

 - Dan

Dan Robertson (1):
  iio: accel: bma400: add PM_SLEEP support

 drivers/iio/accel/bma400.h      |   3 +
 drivers/iio/accel/bma400_core.c | 132 ++++++++++++++++++++++++--------
 drivers/iio/accel/bma400_i2c.c  |   1 +
 drivers/iio/accel/bma400_spi.c  |   1 +
 4 files changed, 107 insertions(+), 30 deletions(-)