iio: pressure: ms5611: remove deprecated compatible strings
PATCH 1/1 iio: pressure: ms5611: remove deprecated compatible strings
Compatible strings tend to follow manufacturer,model format. In case one wants to do a matching with manufacturer stripped off he can still do so since SPI/I2C core will try id_table based matching anyway.
Signed-off-by Tomasz Duszynski <[email protected]>
--- drivers/iio/pressure/ms5611_i2c.c | 2 -- drivers/iio/pressure/ms5611_spi.c | 2 -- 2 files changed, 4 deletions(-)
drivers/iio/pressure/ms5611_i2c.c +0 -2
@@ -117,9 +117,7 @@ static int ms5611_i2c_remove(struct i2c_client *client)#if defined(CONFIG_OF )static const struct of_device_id ms5611_i2c_matches[] = { { .compatible ="meas,ms5611" }, - { .compatible ="ms5611" }, { .compatible ="meas,ms5607" }, - { .compatible ="ms5607" }, { } };MODULE_DEVICE_TABLE (of, ms5611_i2c_matches);
drivers/iio/pressure/ms5611_spi.c +0 -2
@@ -119,9 +119,7 @@ static int ms5611_spi_remove(struct spi_device *spi)#if defined(CONFIG_OF )static const struct of_device_id ms5611_spi_matches[] = { { .compatible ="meas,ms5611" }, - { .compatible ="ms5611" }, { .compatible ="meas,ms5607" }, - { .compatible ="ms5607" }, { } };MODULE_DEVICE_TABLE (of, ms5611_spi_matches);
Signature · 1 line
2.18.0
Jonathan Cameron
maintainerQuoted 6 lines · On Thu, 16 Aug 2018 20:49:15 +0200 Tomasz Duszynski <[email protected]> wrote:
Compatible strings tend to follow manufacturer,model format. In case one wants to do a matching with manufacturer stripped off he can still do so since SPI/I2C core will try
id_tablebased matching anyway.Signed-off-by Tomasz Duszynski <[email protected]>
Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it.
Thanks,
Jonathan
Quoted 33 lines
--- drivers/iio/pressure/ms5611_i2c.c | 2 -- drivers/iio/pressure/ms5611_spi.c | 2 -- 2 files changed, 4 deletions(-)drivers/iio/pressure/ms5611_i2c.c +0
-2@@ -117,9 +117,7 @@ static int ms5611_i2c_remove(struct i2c_client *client)#if defined(CONFIG_OF )static const struct of_device_id ms5611_i2c_matches[] = { { .compatible ="meas,ms5611" }, - { .compatible ="ms5611" }, { .compatible ="meas,ms5607" }, - { .compatible ="ms5607" }, { } };MODULE_DEVICE_TABLE (of, ms5611_i2c_matches);drivers/iio/pressure/ms5611_spi.c +0
-2@@ -119,9 +119,7 @@ static int ms5611_spi_remove(struct spi_device *spi)#if defined(CONFIG_OF )static const struct of_device_id ms5611_spi_matches[] = { { .compatible ="meas,ms5611" }, - { .compatible ="ms5611" }, { .compatible ="meas,ms5607" }, - { .compatible ="ms5607" }, { } };MODULE_DEVICE_TABLE (of, ms5611_spi_matches);