diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-19 11:14:08 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-19 11:14:08 -0500 |
commit | 5031a2a7c12b837a0913c4139ebeb6bbff5e1aa5 (patch) | |
tree | 17d870e89554f0e7ad66029c41f3477ebc371eff /arch | |
parent | 7a684c452e2589f3ddd7e2d466b4f747d3715ad9 (diff) | |
parent | f36b9ddbab408f5f5ed9105d857189b84337af48 (diff) |
Merge tag 'for-v3.8-part2' of git://git.infradead.org/battery-2.6
Pull battery update, part 2, from Anton Vorontsov:
"These are left overs that I didn't have time to review/apply before
the merge window opened. I didn't want to "spoil" the first pull
request with these late patches, so they were not included:
- A small patch for the RX51 OMAP board (Nokia N900 phone), the patch
creates a battery monitor device instance, so that it can be
probed. It was acked by the OMAP maintainer;
- A couple of late bug fixes for the charger-manager: corrects corner
cases for the battery full handling."
* tag 'for-v3.8-part2' of git://git.infradead.org/battery-2.6:
charger-manager: Fix bug when check dropped voltage after fullbatt event
charger-manager: Fix bug related to checking fully charged state of battery
ARM: OMAP: rx51: Register platform device for rx51_battery
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/board-rx51-peripherals.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index 60529e0b3d67..cf07e289b4ea 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c | |||
@@ -256,6 +256,11 @@ static struct spi_board_info rx51_peripherals_spi_board_info[] __initdata = { | |||
256 | }, | 256 | }, |
257 | }; | 257 | }; |
258 | 258 | ||
259 | static struct platform_device rx51_battery_device = { | ||
260 | .name = "rx51-battery", | ||
261 | .id = -1, | ||
262 | }; | ||
263 | |||
259 | static void rx51_charger_set_power(bool on) | 264 | static void rx51_charger_set_power(bool on) |
260 | { | 265 | { |
261 | gpio_set_value(RX51_USB_TRANSCEIVER_RST_GPIO, on); | 266 | gpio_set_value(RX51_USB_TRANSCEIVER_RST_GPIO, on); |
@@ -277,6 +282,7 @@ static void __init rx51_charger_init(void) | |||
277 | WARN_ON(gpio_request_one(RX51_USB_TRANSCEIVER_RST_GPIO, | 282 | WARN_ON(gpio_request_one(RX51_USB_TRANSCEIVER_RST_GPIO, |
278 | GPIOF_OUT_INIT_HIGH, "isp1704_reset")); | 283 | GPIOF_OUT_INIT_HIGH, "isp1704_reset")); |
279 | 284 | ||
285 | platform_device_register(&rx51_battery_device); | ||
280 | platform_device_register(&rx51_charger_device); | 286 | platform_device_register(&rx51_charger_device); |
281 | } | 287 | } |
282 | 288 | ||