This is modelled after the vcnl4035 driver. The vcnl4000 does not seem to have a way to save power so we just leave it running. Guido Günther (2): iio: vcnl4000: Use a single return when getting IIO_CHAN_INFO_RAW iio: vncl4000: Enable runtime pm for vcnl4200/4040 drivers/iio/light/vcnl4000.c | 141 +++++++++++++++++++++++++++++++---- 1 file changed, 128 insertions(+), 13 deletions(-) -- 2.23.0