]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: max14577: Add defines for MAX77836 charger
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 12 Sep 2014 06:53:53 +0000 (08:53 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 24 Sep 2014 12:37:49 +0000 (13:37 +0100)
commit1542f34013c19bf6dd35be95d2aa3bdf96d8969f
treeae703a9820ca20dfa004a6886d9ca122df735b07
parent7055afb06189cf53fcf1841e6e60971221ded012
mfd: max14577: Add defines for MAX77836 charger

Prepare for adding support for MAX77836 charger to the max14577 charger
driver by adding necessary new defines and prefixes to existing ones.

The MAX77836 uses slightly different values for ChgTyp field of STATUS2
register. On the MAX14577 value of 0x6 is reserved and 0x7 dead battery.
On the MAX77836 the opposite:
 - 0x6 means special charger,
 - 0x7 is reserved.
Regardless of these differences use one common enum
max14577_muic_charger_type.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mfd/max14577-private.h