mfd: rtsx: Add set pull control macro and simplify rtl8411
authorMicky Ching <micky_ching@realsil.com.cn>
Wed, 18 Dec 2013 02:03:12 +0000 (10:03 +0800)
committerLee Jones <lee.jones@linaro.org>
Tue, 21 Jan 2014 08:28:11 +0000 (08:28 +0000)
commit0da14eeba216932db2e4b8805ab58dae72e44a45
treeca2b65702d6d2057787533da70358ece2dc62ed3
parentc1ec8fc308bb8171c76b5bed7f4028b6290e53f9
mfd: rtsx: Add set pull control macro and simplify rtl8411

Add set pull control macro to reduce code for setting pull control, and
use a common init function to reduce code for rtl8411.c. So this patch
is used to just simplify code.

Signed-off-by: Micky Ching <micky_ching@realsil.com.cn>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/rtl8411.c
drivers/mfd/rtsx_pcr.h