staging: mt7621-pci: add quirks for 'E2' revision using 'soc_device_attribute'
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Sun, 6 Oct 2019 18:10:32 +0000 (20:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Oct 2019 10:25:47 +0000 (12:25 +0200)
commitb483b4e4d3f6bfd5089b9e6dc9ba259879c6ce6f
tree6399803544bd84bb7b2dbb9b3f1d0cd2955044e2
parentd8a363ef0046ddef23c0b3350af7fdb85b296749
staging: mt7621-pci: add quirks for 'E2' revision using 'soc_device_attribute'

Depending on revision of the chip, reset lines are inverted. Make code
more readable making use of 'soc_device_match' in driver probe function.

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