Commit graph android_kernel_sony_sdm845/include/linux/platform_data/lp8727.h
Message SHA1
lp8727_charger: More pure cosmetic improvements
This is really minor, but it improves the readability.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>

Kim, Milo   authored and   Anton Vorontsov   commited 2012-09-20 18:07:23 -07:00
b9633ef1a9
lp8727_charger: Clean up lp8727 definitions
All definitions should be unique, since they're in the gloabl namespace.
So the prefix LP8727_ are added. Additionally, use BIT() macro for bit
masks. Remove unnecessary definitions such as SW_DM1_U1 and SW_DP2_U2.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>

Kim, Milo   authored and   Anton Vorontsov   commited 2012-09-20 18:01:33 -07:00
6029719f08
lp8727_charger: Add configurable debouce timer
Debounce time is configurable in the platform side. If it is not defined,
the default value is 270ms.

Platform data is msec unit, and this time is converted to jiffies
internally. The workqueue uses this jiffies time in the interrupt
handling. So debounce_jiffies is added in the private data.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>

Kim, Milo   authored and   Anton Vorontsov   commited 2012-09-20 17:57:12 -07:00
60fd57e06e
lp8727_charger: Fix buggy code of NULL pdata
LP8727 platform data is optional, so the driver should work even the
platform data is NULL.

To check the platform data, charging parameter data should be changed to
the pointer type.

Fix NULL point access problem when getting the battery properties. When
the data is NULL, just return as invalid value.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>

Kim, Milo   authored and   Anton Vorontsov   commited 2012-09-20 17:56:49 -07:00
318cb389d0
lp8727_charger: Move header file into platform_data directory
The lp8727 header can be used only in the platform side, so it can be
moved to the platform_data directory.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>

Kim, Milo   authored and   Anton Vorontsov   commited 2012-07-14 01:14:35 -07:00
1aebb09731
Renamed from include/linux/lp8727.h (Browse further)