Commit 39db2d21 authored by Christophe Ricard's avatar Christophe Ricard Committed by Samuel Ortiz

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: default avatarChristophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 3252897f
...@@ -60,13 +60,6 @@ ...@@ -60,13 +60,6 @@
#define ST21NFCA_HCI_I2C_DRIVER_NAME "st21nfca_hci_i2c" #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 st21nfca_i2c_phy {
struct i2c_client *i2c_dev; struct i2c_client *i2c_dev;
struct nfc_hci_dev *hdev; struct nfc_hci_dev *hdev;
...@@ -663,6 +656,12 @@ static int st21nfca_hci_i2c_remove(struct i2c_client *client) ...@@ -663,6 +656,12 @@ static int st21nfca_hci_i2c_remove(struct i2c_client *client)
return 0; 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[] = { static const struct of_device_id of_st21nfca_i2c_match[] = {
{ .compatible = "st,st21nfca-i2c", }, { .compatible = "st,st21nfca-i2c", },
{ .compatible = "st,st21nfca_i2c", }, { .compatible = "st,st21nfca_i2c", },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment