extcon: arizona: Deobfuscate arizona_extcon_do_magic
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Mon, 16 Feb 2015 15:41:02 +0000 (15:41 +0000)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 4 Mar 2015 00:41:48 +0000 (09:41 +0900)
commit112bdfaa525fd5993e17885861342893f15290b0
tree9604310e1c88d9b8263b189fc809766aaf532c50
parent27a28d32b4f22a4ae687837aeda6afb42116cca4
extcon: arizona: Deobfuscate arizona_extcon_do_magic

arizona_extcon_do_magic does not lend a lot of clarity to the purpose
of the function, and as all the registers used are described in the
datasheet there is no need to obfuscate the code. This patch renames the
function to arizona_extcon_hp_clamp, as it controls clamping on the
headphone output.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-arizona.c
include/linux/mfd/arizona/core.h
sound/soc/codecs/arizona.c