Re: [PATCH 2/3] bq24022: Keep track of gpio states
From: Mark Brown <hidden>
Date: 2011-08-29 09:18:07
From: Mark Brown <hidden>
Date: 2011-08-29 09:18:07
On Sun, Aug 28, 2011 at 03:09:23PM +0200, Heiko Stübner wrote:
gpio_get_value is not definied for output-gpios and can therefore not be used for the is_enabled and get_current_limit methods of the bq24022. This patch introduces a private struct to keep track of the values set.
Acked-by: Mark Brown <redacted> This also fixes the use of platform data after probe - platform data should be able to be marked as initdata which may mean that the kernel discards it after boot.