]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
mfd: rtsx: Use macros to replace some variables
authorWei WANG <wei_wang@realsil.com.cn>
Tue, 29 Jan 2013 07:21:36 +0000 (15:21 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 13 Feb 2013 23:22:57 +0000 (00:22 +0100)
commiteebbe2541684da99bf0b179d5182dc8025f5f5b6
treedf2b0907ab20cf1a4ba19a8a7fd8286758008f71
parent678cacdfda800b0cdbfdd01350dcf5e3b767f6ed
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>
drivers/mfd/rtsx_pcr.c
drivers/mfd/rtsx_pcr.h