zephyr/drivers/fuel_gauge
Roman Studenikin 260fc89643 drivers: use DT_INST_PROP over DT_INST_PROP_OR if possible
It might happens that DT(_INST)_PROP_OR is used with boolean properties.
For instance:

	.single_wire = DT_INST_PROP_OR(index, single_wire, false),	\
	.tx_rx_swap = DT_INST_PROP_OR(index, tx_rx_swap, false),	\

This is not required as boolean properties are generated with false
value when not present, so the _OR macro extension is superflous
and the above code can be replaced by:

	.single_wire = DT_INST_PROP(index, single_wire),		\
	.tx_rx_swap = DT_INST_PROP(index, tx_rx_swap),			\

Signed-off-by: Roman Studenikin <srv@meta.com>
2024-01-30 00:26:58 +00:00
..
bq27z746 fuel_gauge: Fix desired current/voltage units 2023-10-09 19:01:49 +03:00
max17048 drivers: fuel_gauge: max17048: Fix overflow when calculating voltage 2023-10-13 19:07:38 +01:00
sbs_gauge drivers: use DT_INST_PROP over DT_INST_PROP_OR if possible 2024-01-30 00:26:58 +00:00
CMakeLists.txt drivers: fuelgauge: Add TI BQ27z746 driver 2023-09-13 12:05:04 +02:00
Kconfig drivers: fuelgauge: Add TI BQ27z746 driver 2023-09-13 12:05:04 +02:00
emul_fuel_gauge_syscall_handlers.c kernel: move syscall_handler.h to internal include directory 2023-11-03 11:46:52 +01:00
fuel_gauge_syscall_handlers.c syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00