diff options
author | Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> | 2017-06-20 22:52:09 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-07-01 12:16:58 +0300 |
commit | c24f83bad9a4f1c8ea2f39771f6b2e3b2afd35ed (patch) | |
tree | a73350782095020462b6ada6427a0b7c31d22d90 /drivers/iio/accel/st_accel_spi.c | |
parent | 250bbbdbed93ca27c9f4d445c960a87d9f7e2044 (diff) | |
download | linux-c24f83bad9a4f1c8ea2f39771f6b2e3b2afd35ed.tar.xz |
iio: accel: st_accel_spi: rename of_device_id table in st_accel_of_match
In order to add proper device tree support give a more general name
to of_device_id table
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/accel/st_accel_spi.c')
-rw-r--r-- | drivers/iio/accel/st_accel_spi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/iio/accel/st_accel_spi.c b/drivers/iio/accel/st_accel_spi.c index 1a867f5563a4..d13742edee0e 100644 --- a/drivers/iio/accel/st_accel_spi.c +++ b/drivers/iio/accel/st_accel_spi.c @@ -62,17 +62,17 @@ static const struct spi_device_id st_accel_id_table[] = { MODULE_DEVICE_TABLE(spi, st_accel_id_table); #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" }, {} }; -MODULE_DEVICE_TABLE(of, lis302dl_spi_dt_ids); +MODULE_DEVICE_TABLE(of, st_accel_of_match); #endif static struct spi_driver st_accel_driver = { .driver = { .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, .remove = st_accel_spi_remove, |