]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
power: supply: max17042: support standard shunt-resistor-micro-ohms DT property
authorAndré Draszik <andre.draszik@linaro.org>
Mon, 2 Mar 2026 13:32:07 +0000 (13:32 +0000)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 3 Mar 2026 22:58:07 +0000 (23:58 +0100)
commit2288d5eaca2249b1b8a80af063808cfc42e2a834
tree960962d56bd05f33dbc4121ece4bf6366f471d24
parent0c5a6dc85d739c41f5240fd149f42f26f0665aab
power: supply: max17042: support standard shunt-resistor-micro-ohms DT property

shunt-resistor-micro-ohms is a standard property used to describe the
value of a shunt resistor required when measuring currents. Standard
properties should be used instead of vendor-specific ones of similar
intention when possible.

Try to read it from DT, and fall back to the vendor-specific property
maxim,rsns-microohm if unsuccessful for compatibility with existing
DTs.

Reviewed-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://patch.msgid.link/20260302-max77759-fg-v3-8-3c5f01dbda23@linaro.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max17042_battery.c