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)
commit25cc24c200dcba21bd1f1a59a01741185062dc0e
treeae703a9820ca20dfa004a6886d9ca122df735b07
parent52addcf9d6669fa439387610bc65c92fa0980cef
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