]> git.baikalelectronics.ru Git - kernel.git/commit
staging: mt7621-pci-phy: re-do 'xtal_mode' detection
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Sat, 21 Mar 2020 13:36:24 +0000 (14:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Mar 2020 10:32:43 +0000 (11:32 +0100)
commit1da2b6924cdac4f450ce7f293568bbb563c07324
tree0610fe3a58e13d2ea6bd41b4c6b0bd971fb4dd01
parent5a19ad7cd653b397f19deb3ace4cea3aae630a4c
staging: mt7621-pci-phy: re-do 'xtal_mode' detection

Detection of the Xtal mode is using magic numbers that
can be avoided using properly some definitions and a more
accurate variable name from 'reg' into 'xtal_mode'. This
increase readability.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20200321133624.31388-4-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c