diff options
author | Wei WANG <wei_wang@realsil.com.cn> | 2013-01-29 11:21:36 +0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-02-14 03:22:57 +0400 |
commit | eebbe2541684da99bf0b179d5182dc8025f5f5b6 (patch) | |
tree | df2b0907ab20cf1a4ba19a8a7fd8286758008f71 /drivers/mfd/rtsx_pcr.h | |
parent | 678cacdfda800b0cdbfdd01350dcf5e3b767f6ed (diff) | |
download | linux-eebbe2541684da99bf0b179d5182dc8025f5f5b6.tar.xz |
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 @@ #include <linux/mfd/rtsx_pci.h> +#define MIN_DIV_N_PCR 80 +#define MAX_DIV_N_PCR 208 + void rts5209_init_params(struct rtsx_pcr *pcr); void rts5229_init_params(struct rtsx_pcr *pcr); void rtl8411_init_params(struct rtsx_pcr *pcr); |