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(-)