summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/spi/spi-sc18is602.c6
-rw-r--r--drivers/spi/spi-xcomm.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/spi/spi-sc18is602.c b/drivers/spi/spi-sc18is602.c
index 78c558e7228e..ae534ebd5e87 100644
--- a/drivers/spi/spi-sc18is602.c
+++ b/drivers/spi/spi-sc18is602.c
@@ -295,9 +295,9 @@ static int sc18is602_probe(struct i2c_client *client)
}
static const struct i2c_device_id sc18is602_id[] = {
- { "sc18is602", sc18is602 },
- { "sc18is602b", sc18is602b },
- { "sc18is603", sc18is603 },
+ { .name = "sc18is602", .driver_data = sc18is602 },
+ { .name = "sc18is602b", .driver_data = sc18is602b },
+ { .name = "sc18is603", .driver_data = sc18is603 },
{ }
};
MODULE_DEVICE_TABLE(i2c, sc18is602_id);
diff --git a/drivers/spi/spi-xcomm.c b/drivers/spi/spi-xcomm.c
index 130a3d716dd4..e40ec6ebe4e5 100644
--- a/drivers/spi/spi-xcomm.c
+++ b/drivers/spi/spi-xcomm.c
@@ -269,8 +269,8 @@ static int spi_xcomm_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id spi_xcomm_ids[] = {
- { "spi-xcomm" },
- { },
+ { .name = "spi-xcomm" },
+ { }
};
MODULE_DEVICE_TABLE(i2c, spi_xcomm_ids);