linux/drivers/iio/temperature
Andy Shevchenko bc4c94994f iio: temperature: ltc2983: Make use of device properties
Convert the module to be property provider agnostic and allow
it to be used on non-OF platforms.

The conversion slightly changes the logic behind property reading for
the configuration values. Original code allocates just as much memory
as needed. Then for each separate 32- or 64-bit value it reads it from
the property and converts to a raw one which will be fed to the sensor.
In the new code we allocate the amount of memory needed to retrieve all
values at once from the property and then convert them as required.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Tested-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20220307203606.87258-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-04-04 09:11:24 +01:00
..
hid-sensor-temperature.c iio: hid-sensors: Update header includes 2021-06-16 14:53:13 +01:00
iqs620at-temp.c iio: temperature: iqs620at-temp: Add support for V3 silicon 2022-02-14 13:07:33 +00:00
Kconfig iio: temperature: Add MAX31865 RTD Support 2021-09-14 12:00:33 +01:00
ltc2983.c iio: temperature: ltc2983: Make use of device properties 2022-04-04 09:11:24 +01:00
Makefile iio: temperature: Add MAX31865 RTD Support 2021-09-14 12:00:33 +01:00
max31856.c iio: max31856: Use sysfs_emit() 2022-01-23 18:03:36 +00:00
max31865.c iio: max31865: Use sysfs_emit() 2022-01-23 18:03:36 +00:00
maxim_thermocouple.c iio: temperature: maxim_thermocouple: Switch from of headers to mod_devicetable.h 2022-02-06 15:22:03 +00:00
mlx90614.c iio:temperature:mlx90614: Switch from CONFIG_PM* guards to pm_ptr() etc 2022-02-18 11:46:04 +00:00
mlx90632.c iio: temperature: mlx90632: Switch from of headers to mod_devicetable.h 2022-02-06 15:21:52 +00:00
tmp006.c iio:temperature:tmp006: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:46:03 +00:00
tmp007.c iio:temperature:tmp007: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:46:03 +00:00
tmp117.c iio: temperature: add driver support for ti tmp117 2021-05-17 13:49:05 +01:00
tsys01.c iio:common:meas-spec: Move exports into IIO_MEAS_SPEC_SENSORS 2022-02-18 11:42:26 +00:00
tsys02d.c iio:common:meas-spec: Move exports into IIO_MEAS_SPEC_SENSORS 2022-02-18 11:42:26 +00:00