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>
Sat, 1 Feb 2020 09:34:47 +0000 (09:34 +0000)
commit21fd877300b01d25c5807c327848fdc7c813cf0e
tree805eee83ad769c370724e0de2a71f5943b188a32
parentc9ddede0a9fcda03e3c6ac429386f2f392640e72
staging: mt7621-pci: add quirks for 'E2' revision using 'soc_device_attribute'

[ Upstream commit b483b4e4d3f6bfd5089b9e6dc9ba259879c6ce6f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/mt7621-pci/pci-mt7621.c