NFC: trf7970a: Move IRQ Status Read quirk to device tree
authorMark A. Greer <mgreer@animalcreek.com>
Fri, 8 Aug 2014 00:41:43 +0000 (17:41 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 31 Aug 2014 22:06:55 +0000 (00:06 +0200)
commit772079eb77587e0242752fa67685a8132d899f79
tree95a2cf8ec54431093321b6f3f3e0ec5381007f96
parentc2b33de06d23e66f9df34f515704cd3bfa8dd260
NFC: trf7970a: Move IRQ Status Read quirk to device tree

The quirk indicating whether the trf7970a has
the "IRQ Status Read" erratum or not is currently
implemented using the 'driver_data' member of the
'spi_device_id' structure.  That requires the
driver to be modified to turn the quirk off when
a version of the trf7970a that doesn't have the
erratum is being used.  To fix that, create a
new device tree property called
'irq-status-read-quirk' that indicates that the
trf7970a being used has the erratum.

While at it, rename 'TRF7970A_QUIRK_IRQ_STATUS_READ_ERRATA'
to 'TRF7970A_QUIRK_IRQ_STATUS_READ' to make it
less of an eyesore.

Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/trf7970a.c
This page took 0.02454 seconds and 5 git commands to generate.