linux/drivers/iio/temperature
Peter Rosin 3f3a89e1d7 i2c: remove i2c_lock_adapter and use i2c_lock_bus directly
The i2c_lock_adapter name is ambiguous since it is unclear if it
refers to the root adapter or the adapter you name in the argument.
The natural interpretation is the adapter you name in the argument,
but there are historical reasons for that not being the case; it
in fact locks the root adapter. Just remove the function and force
users to spell out the I2C_LOCK_ROOT_ADAPTER name to indicate what
is really going on. Also remove i2c_unlock_adapter, of course.

This patch was generated with

git grep -l 'i2c_\(un\)\?lock_adapter' \
| xargs sed -i 's/i2c_\(un\)\?lock_adapter(\([^)]*\))/'\
'i2c_\1lock_bus(\2, I2C_LOCK_ROOT_ADAPTER)/g'

followed by white-space touch-up.

Signed-off-by: Peter Rosin <peda@axentia.se>
Acked-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Tested-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2018-07-13 00:09:37 +02:00
..
hid-sensor-temperature.c iio:temperature: drop assignment of iio_info.driver_module 2017-08-22 22:14:52 +01:00
Kconfig iio: temperature: Adding support for MLX90632 2018-02-04 10:21:48 +00:00
Makefile iio: temperature: Adding support for MLX90632 2018-02-04 10:21:48 +00:00
maxim_thermocouple.c iio: add SPDX identifier for various drivers 2018-02-18 11:55:19 +00:00
mlx90614.c i2c: remove i2c_lock_adapter and use i2c_lock_bus directly 2018-07-13 00:09:37 +02:00
mlx90632.c iio temperature/mlx90632: silence a static checker warning 2018-02-24 13:32:05 +00:00
tmp006.c iio:temperature: drop assignment of iio_info.driver_module 2017-08-22 22:14:52 +01:00
tmp007.c iio:temperature: drop assignment of iio_info.driver_module 2017-08-22 22:14:52 +01:00
tsys01.c iio:temperature: drop assignment of iio_info.driver_module 2017-08-22 22:14:52 +01:00
tsys02d.c iio:temperature: drop assignment of iio_info.driver_module 2017-08-22 22:14:52 +01:00