rockbox/firmware/target/hosted/agptek
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 Agptek Rocker: Initial commit 2018-06-12 10:31:14 +02:00
button-agptek.c hosted: Consolidate common /dev/input code shared by the hiby targets 2020-10-31 14:17:22 +00:00
button-target.h hosted: Consolidate common /dev/input code shared by the hiby targets 2020-10-31 14:17:22 +00:00
debug-agptek.c debug: Report if double-buffered fb is enabled 2025-05-08 12:35:03 -04:00
lcd-target.h Agptek Rocker: Add missing lcd_set_active(true) in lcd_init_device() 2018-06-20 21:17:08 +02:00
powermgmt-agptek.c hosted: consolidate sysfs-based battery measurement code 2025-12-01 13:39:04 +00:00
system-target.h Agptek Rocker: Initial commit 2018-06-12 10:31:14 +02:00