rockbox/firmware/target/hosted/surfans
Aidan MacDonald 806b71b2ed hosted: consolidate sysfs-based battery measurement code
Several hosted targets read their battery state from a fixed
sysfs path. Get rid of the duplicated code by handling this
common case in power-linux.c.

Some targets use non-standard units in sysfs instead of the
typical microvolts / microamps, so allow the scale factors
to be overridden by the target.

Change-Id: I31dc4ffc7a2d2c066d00a74070f9f9849c1663d0
2025-12-01 13:39:04 +00:00
..
adc-target.h
button-f28.c surfansf28: More fixes: 2025-05-06 09:56:03 -04:00
button-target.h surfansf28: More fixes: 2025-05-06 09:56:03 -04:00
debug-f28.c surfansf28: Get rid of the redundant debug code. 2025-05-08 12:27:48 -04:00
lcd-target.h
powermgmt-f28.c hosted: consolidate sysfs-based battery measurement code 2025-12-01 13:39:04 +00:00
system-target.h