diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-11-30 00:06:33 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2021-12-05 14:18:32 -0500 |
commit | 6ff1a935b923b69d34d18e68af612297912c806b (patch) | |
tree | 6026d07765d9235118c039ce2afa4d5560d29950 /firmware/export | |
parent | d93a3cac50d966227e9c9d77391bf47b2a858fb1 (diff) | |
download | rockbox-6ff1a935b923b69d34d18e68af612297912c806b.tar.gz rockbox-6ff1a935b923b69d34d18e68af612297912c806b.zip |
powermgmt: Remove an unnecessary function
Remove battery_read_info() which is a simple wrapper
function only used by debug screens. Use the polling
functions directly to save a bit of code size.
Change-Id: I2919f78105bab186f6933dc1823f9fa67fe74f3e
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/powermgmt.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h index 329e64d653..a4b924915c 100644 --- a/firmware/export/powermgmt.h +++ b/firmware/export/powermgmt.h | |||
@@ -149,10 +149,6 @@ unsigned int input_millivolts(void); /* voltage that device is running from */ | |||
149 | void reset_battery_filter(int millivolts); | 149 | void reset_battery_filter(int millivolts); |
150 | #endif /* HAVE_BATTERY_SWITCH || HAVE_RESET_BATTERY_FILTER */ | 150 | #endif /* HAVE_BATTERY_SWITCH || HAVE_RESET_BATTERY_FILTER */ |
151 | 151 | ||
152 | |||
153 | /* read unfiltered battery info */ | ||
154 | void battery_read_info(int *voltage, int *level); | ||
155 | |||
156 | /* Tells if the battery level is safe for disk writes */ | 152 | /* Tells if the battery level is safe for disk writes */ |
157 | bool battery_level_safe(void); | 153 | bool battery_level_safe(void); |
158 | 154 | ||