mbox series

[v2,0/2] iio: vncl4000: Enable runtime pm for vcnl4200/4040

Message ID cover.1580391472.git.agx@sigxcpu.org (mailing list archive)
Headers show
Series iio: vncl4000: Enable runtime pm for vcnl4200/4040 | expand

Message

Guido Günther Jan. 30, 2020, 1:42 p.m. UTC
This is modelled after the vcnl4035 driver. For the vcnl40{0,1,2}0 we
don't do anything since they use on demand measurement.

Patch is against next-20200130.

Changes from v2
---------------
- Based on review feedback Tomas Novotny
  https://lore.kernel.org/linux-iio/20200120182853.37a724fa@tomas.local.tbs-biometrics.cz/
  Drop long wait in vcnl4000_runtime_resume but rather
  use vcnl4200_{al,ps}.last_measurement to make sure
  we wait long enough.

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 | 150 ++++++++++++++++++++++++++++++-----
 1 file changed, 132 insertions(+), 18 deletions(-)