Pull power supply updates from Sebastian Reichel: "Power supply and reset changes for the v3.18-rc: - misc. charger-manager fixes - year 2038 fix in ab8500_fg - fix error handling of bq2415x_charger" * tag 'for-v3.18-rc' of git://git.infradead.org/battery-2.6: power: charger-manager: Fix accessing invalidated power supply after charger unbind power: charger-manager: Fix accessing invalidated power supply after fuel gauge unbind power: charger-manager: Avoid recursive thermal get_temp call power_supply: Add no_thermal property to prevent recursive get_temp calls power: bq2415x_charger: Fix memory leak on DTS parsing error power: bq2415x_charger: Properly handle ENODEV from power_supply_get_by_phandle power: ab8500_fg.c: use 64-bit time types
Showing the changes to include/linux (2 of 6 files). Show all
Unified · Split
| @@ -253,9 +253,6 @@ struct charger_manager { · 252 unmodified lines | ||
| 253 | 253 | struct device *dev; |
| 254 | 254 | struct charger_desc *desc; |
| 255 | 255 | |
| 256 | − struct power_supply *fuel_gauge; | |
| 257 | − struct power_supply **charger_stat; | |
| 258 | − | |
| 259 | 256 | #ifdef CONFIG_THERMAL |
| 260 | 257 | struct thermal_zone_device *tzd_batt; |
| 261 | 258 | #endif |
| @@ -200,6 +200,12 @@ struct power_supply { · 199 unmodified lines | ||
| 200 | 200 | void (*external_power_changed)(struct power_supply *psy); |
| 201 | 201 | void (*set_charged)(struct power_supply *psy); |
| 202 | 202 | |
| 203 | + /* | |
| 204 | + * Set if thermal zone should not be created for this power supply. | |
| 205 | + * For example for virtual supplies forwarding calls to actual | |
| 206 | + * sensors or other supplies. | |
| 207 | + */ | |
| 208 | + bool no_thermal; | |
| 203 | 209 | /* For APM emulation, think legacy userspace. */ |
| 204 | 210 | int use_for_apm; |
| 205 | 211 | |