Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3252897f authored by Christophe Ricard's avatar Christophe Ricard Committed by Samuel Ortiz
Browse files

nfc: st-nci: 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 a21512d1
Loading
Loading
Loading
Loading
+6 −5
Original line number Original line Diff line number Diff line
@@ -40,11 +40,6 @@


#define ST_NCI_I2C_DRIVER_NAME "st_nci_i2c"
#define ST_NCI_I2C_DRIVER_NAME "st_nci_i2c"


static struct i2c_device_id st_nci_i2c_id_table[] = {
	{ST_NCI_DRIVER_NAME, 0},
	{}
};
MODULE_DEVICE_TABLE(i2c, st_nci_i2c_id_table);


struct st_nci_i2c_phy {
struct st_nci_i2c_phy {
	struct i2c_client *i2c_dev;
	struct i2c_client *i2c_dev;
@@ -351,6 +346,12 @@ static int st_nci_i2c_remove(struct i2c_client *client)
	return 0;
	return 0;
}
}


static struct i2c_device_id st_nci_i2c_id_table[] = {
	{ST_NCI_DRIVER_NAME, 0},
	{}
};
MODULE_DEVICE_TABLE(i2c, st_nci_i2c_id_table);

static const struct of_device_id of_st_nci_i2c_match[] = {
static const struct of_device_id of_st_nci_i2c_match[] = {
	{ .compatible = "st,st21nfcb-i2c", },
	{ .compatible = "st,st21nfcb-i2c", },
	{ .compatible = "st,st21nfcb_i2c", },
	{ .compatible = "st,st21nfcb_i2c", },
+6 −6
Original line number Original line Diff line number Diff line
@@ -41,12 +41,6 @@


#define ST_NCI_SPI_DRIVER_NAME "st_nci_spi"
#define ST_NCI_SPI_DRIVER_NAME "st_nci_spi"


static struct spi_device_id st_nci_spi_id_table[] = {
	{ST_NCI_SPI_DRIVER_NAME, 0},
	{}
};
MODULE_DEVICE_TABLE(spi, st_nci_spi_id_table);

struct st_nci_spi_phy {
struct st_nci_spi_phy {
	struct spi_device *spi_dev;
	struct spi_device *spi_dev;
	struct llt_ndlc *ndlc;
	struct llt_ndlc *ndlc;
@@ -367,6 +361,12 @@ static int st_nci_spi_remove(struct spi_device *dev)
	return 0;
	return 0;
}
}


static struct spi_device_id st_nci_spi_id_table[] = {
	{ST_NCI_SPI_DRIVER_NAME, 0},
	{}
};
MODULE_DEVICE_TABLE(spi, st_nci_spi_id_table);

static const struct of_device_id of_st_nci_spi_match[] = {
static const struct of_device_id of_st_nci_spi_match[] = {
	{ .compatible = "st,st21nfcb-spi", },
	{ .compatible = "st,st21nfcb-spi", },
	{}
	{}