summaryrefslogtreecommitdiffstats
path: root/drivers/nfc
diff options
context:
space:
mode:
authorChristophe Ricard <christophe.ricard@gmail.com>2015-12-23 23:45:06 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2015-12-29 19:06:15 +0100
commit39db2d214898baa55db39a54f8644ffc0535fe4a (patch)
treed66c4e250a86ef11311f60966208ae28dac864e4 /drivers/nfc
parent3252897f7a326a480e662c3b38a554fc35c6ad31 (diff)
downloadop-kernel-dev-39db2d214898baa55db39a54f8644ffc0535fe4a.zip
op-kernel-dev-39db2d214898baa55db39a54f8644ffc0535fe4a.tar.gz
nfc: st21nfca: Group device table together
Group device table at the same place in order to make the code easier to read and parse. Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc')
-rw-r--r--drivers/nfc/st21nfca/i2c.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/nfc/st21nfca/i2c.c b/drivers/nfc/st21nfca/i2c.c
index bb0409e..0e6f6a8 100644
--- a/drivers/nfc/st21nfca/i2c.c
+++ b/drivers/nfc/st21nfca/i2c.c
@@ -60,13 +60,6 @@
#define ST21NFCA_HCI_I2C_DRIVER_NAME "st21nfca_hci_i2c"
-static struct i2c_device_id st21nfca_hci_i2c_id_table[] = {
- {ST21NFCA_HCI_DRIVER_NAME, 0},
- {}
-};
-
-MODULE_DEVICE_TABLE(i2c, st21nfca_hci_i2c_id_table);
-
struct st21nfca_i2c_phy {
struct i2c_client *i2c_dev;
struct nfc_hci_dev *hdev;
@@ -663,6 +656,12 @@ static int st21nfca_hci_i2c_remove(struct i2c_client *client)
return 0;
}
+static struct i2c_device_id st21nfca_hci_i2c_id_table[] = {
+ {ST21NFCA_HCI_DRIVER_NAME, 0},
+ {}
+};
+MODULE_DEVICE_TABLE(i2c, st21nfca_hci_i2c_id_table);
+
static const struct of_device_id of_st21nfca_i2c_match[] = {
{ .compatible = "st,st21nfca-i2c", },
{ .compatible = "st,st21nfca_i2c", },
OpenPOWER on IntegriCloud