NFC: st-nci: Get rid of code duplication in ->probe()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 19 Jun 2017 10:08:57 +0000 (13:08 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 22 Jun 2017 21:51:45 +0000 (23:51 +0200)
commitc745120e343abfbcf5c9239e09cae4a3cf651fa0
tree2cce550af75829f85fe14dad6f2ae5a851965d6d
parent85d23e772931e347c145fa78db3c48f29e169838
NFC: st-nci: Get rid of code duplication in ->probe()

Since OF and ACPI case almost the same get rid of code duplication
by moving gpiod_get() calls directly to ->probe().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/st-nci/i2c.c
drivers/nfc/st-nci/spi.c