|
@@ -62,17 +62,17 @@ static const struct spi_device_id st_accel_id_table[] = {
|
|
MODULE_DEVICE_TABLE(spi, st_accel_id_table);
|
|
MODULE_DEVICE_TABLE(spi, st_accel_id_table);
|
|
|
|
|
|
#ifdef CONFIG_OF
|
|
#ifdef CONFIG_OF
|
|
-static const struct of_device_id lis302dl_spi_dt_ids[] = {
|
|
|
|
|
|
+static const struct of_device_id st_accel_of_match[] = {
|
|
{ .compatible = "st,lis302dl-spi" },
|
|
{ .compatible = "st,lis302dl-spi" },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
-MODULE_DEVICE_TABLE(of, lis302dl_spi_dt_ids);
|
|
|
|
|
|
+MODULE_DEVICE_TABLE(of, st_accel_of_match);
|
|
#endif
|
|
#endif
|
|
|
|
|
|
static struct spi_driver st_accel_driver = {
|
|
static struct spi_driver st_accel_driver = {
|
|
.driver = {
|
|
.driver = {
|
|
.name = "st-accel-spi",
|
|
.name = "st-accel-spi",
|
|
- .of_match_table = of_match_ptr(lis302dl_spi_dt_ids),
|
|
|
|
|
|
+ .of_match_table = of_match_ptr(st_accel_of_match),
|
|
},
|
|
},
|
|
.probe = st_accel_spi_probe,
|
|
.probe = st_accel_spi_probe,
|
|
.remove = st_accel_spi_remove,
|
|
.remove = st_accel_spi_remove,
|