]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/nfc/pn544/i2c.c
NFC: pn544: Get rid of code duplication in ->probe()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 28 Mar 2017 09:36:39 +0000 (12:36 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 5 Apr 2017 08:04:20 +0000 (10:04 +0200)
commit95129b6f0806d1ba6109dc1df4d9753ad3d4a94c
tree9f7501bab0912c116aca9f53450bffe2541e67b3
parenta4a0eb783b112e45563dcf020388dfa186961010
NFC: pn544: 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/pn544/i2c.c