Re: [PATCH v6 1/3] iio: temperature: mlx90632 Add runtime powermanagement modes

From: Christophe JAILLET
Date: Sun Oct 02 2022 - 12:11:54 EST


Le 02/10/2022 à 18:09, Christophe JAILLET a écrit :
  static int mlx90632_read_raw(struct iio_dev *indio_dev,
                   struct iio_chan_spec const *channel, int *val,
                   int *val2, long mask)
  {
      struct mlx90632_data *data = iio_priv(indio_dev);
      int ret;
+    int cr;

This 'cr' seems to be unused.

Ok, used in patch 2/3.
Sorry for the noise.

CJ


+
+    pm_runtime_get_sync(&data->client->dev);
+    ret = mlx90632_pm_interraction_wakeup(data);
+    if (ret < 0)
+        goto mlx90632_read_raw_pm;

[...]