diff options
author | Wei WANG <wei_wang@realsil.com.cn> | 2013-01-22 20:51:04 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-01-26 19:29:39 -0500 |
commit | d817ac4e181710cd02b582b759d3123ad2cfa8d8 (patch) | |
tree | 1e4356b9baf0903293d9dc428a3b5badf8041015 /drivers/mfd/rtsx_pcr.c | |
parent | 00441b5e6b98ad6a50b5cb7f88d473e3ea1e0d75 (diff) |
mfd: rtsx: Add output voltage switch hook
Different card reader has different method to switch output voltage,
add this callback to let the card reader implement its individual switch
function.
This is needed as rtl8411 has a specific switch output voltage procedure.
Signed-off-by: Wei WANG <wei_wang@realsil.com.cn>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/rtsx_pcr.c')
-rw-r--r-- | drivers/mfd/rtsx_pcr.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/mfd/rtsx_pcr.c b/drivers/mfd/rtsx_pcr.c index 7a7b0bda4618..f4e02d089271 100644 --- a/drivers/mfd/rtsx_pcr.c +++ b/drivers/mfd/rtsx_pcr.c | |||
@@ -703,6 +703,15 @@ int rtsx_pci_card_power_off(struct rtsx_pcr *pcr, int card) | |||
703 | } | 703 | } |
704 | EXPORT_SYMBOL_GPL(rtsx_pci_card_power_off); | 704 | EXPORT_SYMBOL_GPL(rtsx_pci_card_power_off); |
705 | 705 | ||
706 | int rtsx_pci_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) | ||
707 | { | ||
708 | if (pcr->ops->switch_output_voltage) | ||
709 | return pcr->ops->switch_output_voltage(pcr, voltage); | ||
710 | |||
711 | return 0; | ||
712 | } | ||
713 | EXPORT_SYMBOL_GPL(rtsx_pci_switch_output_voltage); | ||
714 | |||
706 | unsigned int rtsx_pci_card_exist(struct rtsx_pcr *pcr) | 715 | unsigned int rtsx_pci_card_exist(struct rtsx_pcr *pcr) |
707 | { | 716 | { |
708 | unsigned int val; | 717 | unsigned int val; |