WSL2-Linux-Kernel/drivers/iio/chemical
Jonathan Cameron 0e4f336f50 iio: chemical: atlas-sensor: Balance runtime pm + pm_runtime_resume_and_get()
The pm_runtime_put_noidle() call in remove isn't balanced with any get, so
drop it.  Note this isn't a bug as the runtime pm core will not allow the
reference count to go negative, making this a noop. However, it is
confusing to the reader so let's drop it.

pm_runtime_resume_and_get() replacement found using the coccicheck script
under review at:
https://lore.kernel.org/lkml/20210427141946.2478411-1-Julia.Lawall@inria.fr/

As pm_runtime_resume_and_get() returns <= 0 take advantage of that to
change the error checking to if (ret) which is more in keeping with the
rest of this driver.

This is a prequel to taking a closer look at the runtime pm in IIO drivers
in general.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Matt Ranostay <matt.ranostay@konsulko.com>
Acked-by: Matt Ranostay <matt.ranostay@konsulko.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/20210516162103.1332291-4-jic23@kernel.org
2021-06-16 14:53:13 +01:00
..
Kconfig iio: sps30: add support for serial interface 2021-05-17 13:49:10 +01:00
Makefile iio: sps30: add support for serial interface 2021-05-17 13:49:10 +01:00
ams-iaq-core.c
atlas-ezo-sensor.c
atlas-sensor.c iio: chemical: atlas-sensor: Balance runtime pm + pm_runtime_resume_and_get() 2021-06-16 14:53:13 +01:00
bme680.h
bme680_core.c
bme680_i2c.c iio: bme680_i2c: Remove acpi_device_id table 2021-05-17 13:54:23 +01:00
bme680_spi.c iio: bme680_spi: Remove acpi_device_id table 2021-05-17 13:54:23 +01:00
ccs811.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
pms7003.c
scd30.h
scd30_core.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
scd30_i2c.c
scd30_serial.c
sgp30.c iio: chemical: sgp30: Drop use of %hx in format string. 2021-06-03 18:24:13 +01:00
sps30.c iio: sps30: separate core and interface specific code 2021-05-17 13:49:10 +01:00
sps30.h iio: sps30: separate core and interface specific code 2021-05-17 13:49:10 +01:00
sps30_i2c.c iio: sps30: separate core and interface specific code 2021-05-17 13:49:10 +01:00
sps30_serial.c iio: sps30: add support for serial interface 2021-05-17 13:49:10 +01:00
vz89x.c