diff options
author | Wei WANG <wei_wang@realsil.com.cn> | 2013-01-29 02:21:36 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-02-13 18:22:57 -0500 |
commit | eebbe2541684da99bf0b179d5182dc8025f5f5b6 (patch) | |
tree | df2b0907ab20cf1a4ba19a8a7fd8286758008f71 /drivers/mfd/rtsx_pcr.h | |
parent | 678cacdfda800b0cdbfdd01350dcf5e3b767f6ed (diff) |
mfd: rtsx: Use macros to replace some variables
In function rtsx_pci_switch_clock, some variables, such as min_n, max_n,
and max_div, are not necessary. And those assigned values look very
obscure for others. It's more proper to use macro definitions here to
replace these variables.
Signed-off-by: Wei WANG <wei_wang@realsil.com.cn>
Acked-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/rtsx_pcr.h')
-rw-r--r-- | drivers/mfd/rtsx_pcr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mfd/rtsx_pcr.h b/drivers/mfd/rtsx_pcr.h index 12462c1df1a9..33c210be1daa 100644 --- a/drivers/mfd/rtsx_pcr.h +++ b/drivers/mfd/rtsx_pcr.h | |||
@@ -25,6 +25,9 @@ | |||
25 | 25 | ||
26 | #include <linux/mfd/rtsx_pci.h> | 26 | #include <linux/mfd/rtsx_pci.h> |
27 | 27 | ||
28 | #define MIN_DIV_N_PCR 80 | ||
29 | #define MAX_DIV_N_PCR 208 | ||
30 | |||
28 | void rts5209_init_params(struct rtsx_pcr *pcr); | 31 | void rts5209_init_params(struct rtsx_pcr *pcr); |
29 | void rts5229_init_params(struct rtsx_pcr *pcr); | 32 | void rts5229_init_params(struct rtsx_pcr *pcr); |
30 | void rtl8411_init_params(struct rtsx_pcr *pcr); | 33 | void rtl8411_init_params(struct rtsx_pcr *pcr); |