linux/drivers/iio/humidity
Krzysztof Kozlowski 465c79ad06 iio: Use str_enable_disable-like helpers
Replace ternary (condition ? "enable" : "disable") syntax with helpers
from string_choices.h because:
1. Simple function call with one argument is easier to read.  Ternary
   operator has three arguments and with wrapping might lead to quite
   long code.
2. Is slightly shorter thus also easier to read.
3. It brings uniformity in the text - same string.
4. Allows deduping by the linker, which results in a smaller binary
   file.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250114192716.912476-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2025-02-03 19:15:37 +00:00
..
Kconfig iio: humidity: Add support for ENS210 2024-08-17 15:37:37 +01:00
Makefile iio: humidity: Add support for ENS210 2024-08-17 15:37:37 +01:00
am2315.c iio: humidity: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
dht11.c iio: Use str_enable_disable-like helpers 2025-02-03 19:15:37 +00:00
ens210.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
hdc100x.c iio: humidity: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
hdc2010.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
hdc3020.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
hid-sensor-humidity.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hts221.h iio: humidity: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
hts221_buffer.c iio: humidity: hts221: use irq_get_trigger_type() 2024-09-30 09:20:58 +01:00
hts221_core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hts221_i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hts221_spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
htu21.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
si7005.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
si7020.c iio: humidity: si7020: add heater support 2024-06-13 19:19:23 +01:00