Martin Blumenstingl
d53bfdf2f0
iio: adc: meson-saradc: Use the parent device to look up the calib data
...
On the older-gen 32-bit SoCs the meson-saradc driver is used to read the
SoC temperature. This requires reading calibration data from the eFuse.
Looking up the calibration data nvmem-cell requires the OF device_node
pointer to be available in the struct device which is passed to
devm_nvmem_cell_get(). This however got lost with commit 8cb631ccbb1952
("iio: Remove superfluous of_node assignments") from indio_dev->dev. As
devm_nvmem_cell_get() is called in the initialization phase the
device_node is not yet available because the NVMEM cell is looked up
before iio_device_register() is called (which would then set the
device_node automatically).
Use the parent device to look up the NVMEM cell instead to fix this
issue.
Fixes: 8cb631ccbb1952 ("iio: Remove superfluous of_node assignments")
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-08-31 10:47:52 +01:00
..
2020-06-14 14:20:08 +01:00
2020-07-20 09:03:20 +01:00
2019-11-16 17:06:10 +00:00
2020-06-14 11:49:59 +01:00
2019-11-16 17:06:10 +00:00
2020-07-22 14:36:05 +01:00
2020-07-20 09:03:37 +01:00
2020-06-20 17:34:44 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-07-20 09:02:49 +01:00
2020-06-14 14:20:08 +01:00
2019-08-05 15:59:14 +01:00
2019-08-25 16:11:00 +01:00
2020-06-20 17:34:44 +01:00
2019-08-25 16:11:00 +01:00
2020-06-20 17:34:44 +01:00
2020-06-20 17:34:44 +01:00
2020-07-20 09:37:31 +02:00
2020-06-14 14:20:08 +01:00
2020-06-14 14:20:08 +01:00
2020-07-20 09:02:57 +01:00
2020-07-20 09:02:49 +01:00
2020-07-13 15:05:59 +01:00
2020-04-19 16:56:23 +01:00
2020-07-20 09:02:46 +01:00
2020-07-20 09:37:31 +02:00
2020-06-14 11:49:59 +01:00
2020-07-20 09:03:22 +01:00
2020-07-20 09:03:22 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-06-14 11:49:59 +01:00
2020-07-20 09:03:23 +01:00
2020-06-14 14:20:08 +01:00
2020-06-20 17:34:44 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-07-07 20:24:08 +01:00
2020-06-14 11:50:04 +01:00
2020-06-14 11:49:59 +01:00
2020-08-31 10:47:52 +01:00
2020-07-22 14:36:31 +01:00
2020-06-14 11:49:59 +01:00
2020-08-22 11:38:45 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-07-07 20:24:08 +01:00
2020-06-14 11:49:59 +01:00
2020-06-14 11:49:59 +01:00
2020-07-07 20:24:08 +01:00
2020-06-14 11:50:04 +01:00
2020-07-07 20:24:09 +01:00
2019-12-15 12:15:19 +00:00
2020-06-07 10:45:08 -07:00
2020-07-07 20:24:08 +01:00
2020-08-31 10:47:52 +01:00
2020-06-14 11:49:59 +01:00
2020-07-20 09:03:27 +01:00
2020-07-20 09:03:27 +01:00
2020-07-07 20:24:09 +01:00
2020-07-13 15:05:59 +01:00
2020-07-13 15:05:59 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-08-31 10:47:52 +01:00
2020-05-26 10:41:47 +01:00
2020-06-14 11:49:59 +01:00
2020-06-20 17:34:44 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-07-20 09:03:28 +01:00
2020-07-20 09:03:31 +01:00
2020-06-27 14:10:52 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:21 +01:00
2020-06-14 11:49:21 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-07-20 09:03:35 +01:00
2020-06-14 11:49:59 +01:00
2020-07-07 20:24:09 +01:00
2020-06-14 11:49:59 +01:00
2020-05-22 17:29:25 +01:00
2019-12-15 11:42:17 +00:00
2020-06-20 17:34:44 +01:00
2020-06-20 17:34:44 +01:00
2019-04-27 14:09:28 +01:00
2019-06-22 10:29:19 +01:00
2020-06-14 11:49:59 +01:00
2020-06-14 11:49:59 +01:00
2020-06-14 14:20:08 +01:00
2020-07-20 09:03:11 +01:00
2020-08-31 10:47:41 +01:00
2020-08-31 10:47:52 +01:00
2020-06-14 11:49:59 +01:00
2020-07-13 15:05:59 +01:00
2020-07-07 20:24:10 +01:00
2020-07-13 15:05:59 +01:00
2020-06-14 11:49:59 +01:00
2020-07-13 15:05:59 +01:00
2020-08-22 11:38:44 +01:00
2020-07-13 15:05:59 +01:00
2020-07-13 15:05:59 +01:00
2020-06-14 14:20:08 +01:00
2020-07-13 15:05:59 +01:00
2020-07-20 09:03:14 +01:00
2020-07-20 09:03:15 +01:00
2020-06-20 17:34:44 +01:00
2020-06-14 11:49:59 +01:00
2020-06-20 17:34:44 +01:00
2020-03-21 10:25:35 +00:00
2020-03-21 10:25:35 +00:00