mfd: rtsx: Add clock divider hook
authorWei WANG <wei_wang@realsil.com.cn>
Wed, 23 Jan 2013 01:51:06 +0000 (09:51 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 27 Jan 2013 00:30:20 +0000 (01:30 +0100)
commitab4e8f8b7bdfeff0c961fdbbdacb262d68f094c0
tree543440d2656343141c14e565e795a655378a0f72
parentef85e736b1052d8c1e56990f0d08b6fce7cdbe41
mfd: rtsx: Add clock divider hook

Add callback function conv_clk_and_div_n to convert between SSC clock
and its divider N.
For rtl8411, the formula to calculate SSC clock divider N is different
with the other card reader models.

Signed-off-by: Wei WANG <wei_wang@realsil.com.cn>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/rtl8411.c
drivers/mfd/rts5209.c
drivers/mfd/rts5229.c
drivers/mfd/rtsx_pcr.c
include/linux/mfd/rtsx_common.h
include/linux/mfd/rtsx_pci.h