freemyipod r846 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r845‎ | r846 | r847 >
Date:23:47, 26 December 2011
Author:theseven
Status:new
Tags:
Comment:
emCORE: Add stubs for the new power management functions to the s5l8720 driver as well (fix red)
Modified paths:
  • /emcore/trunk/target/ipodnano4g/power.c (modified) (history)

Diff [purge]

Index: emcore/trunk/target/ipodnano4g/power.c
@@ -94,13 +94,29 @@
9595 return -1;
9696 }
9797
98 -int read_input_mw(int battery)
 98+enum battery_state read_battery_state(int battery)
9999 {
 100+ if (battery != 0) return BATTERY_STATE_INVALID;
 101+ return BATTERY_STATE_UNKNOWN;
 102+}
 103+
 104+int read_input_voltage(int input)
 105+{
100106 return -1;
101107 }
102108
103 -enum battery_state read_battery_state(int battery)
 109+int read_input_current(int input)
104110 {
105 - if (battery != 0) return BATTERY_STATE_INVALID;
106 - return BATTERY_STATE_UNKNOWN;
 111+ return -1;
107112 }
 113+
 114+int read_input_mw(int input)
 115+{
 116+ return -1;
 117+}
 118+
 119+enum input_state read_battery_state(int input)
 120+{
 121+ if (input != 0) return INPUT_STATE_INVALID;
 122+ return INPUT_STATE_UNKNOWN;
 123+}
\ No newline at end of file