NFC: st21nfcb: Remove gpio_irq field in static and dts configuration
authorChristophe Ricard <christophe.ricard@gmail.com>
Wed, 12 Nov 2014 23:30:26 +0000 (00:30 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 1 Dec 2014 23:54:23 +0000 (00:54 +0100)
commita80d0cb6f6addc5a1f3852466fe8d37ca4fe1350
tree1f7a36f5391417ae14ca1d952130923497e94201
parentd9b66918943eff161646ef2358101b5973ccc22c
NFC: st21nfcb: Remove gpio_irq field in static and dts configuration

- phy->gpio_irq is never done out of the request resources.
- irq_of_parse_and_map is already done in the i2c core so client->irq is
already set when entering in st21nfcb_hci_i2c_of_request_resources
- In case of static platform configuration client->irq can be set directly.
- It simplifies the code a bit.

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/st21nfcb/i2c.c
include/linux/platform_data/st21nfcb.h