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)
commit9791ca0dcb46dcedc5fb93fb4e8791cedc91babd
tree0610fe3a58e13d2ea6bd41b4c6b0bd971fb4dd01
parent1a4bcfa6028563b358317515c0e514545231fb2a
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