Commit a18c66c4 authored by Tomasz Duszynski's avatar Tomasz Duszynski Committed by Jonathan Cameron

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: default avatarTomasz Duszynski <tduszyns@gmail.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 79fd571b
...@@ -117,9 +117,7 @@ static int ms5611_i2c_remove(struct i2c_client *client) ...@@ -117,9 +117,7 @@ static int ms5611_i2c_remove(struct i2c_client *client)
#if defined(CONFIG_OF) #if defined(CONFIG_OF)
static const struct of_device_id ms5611_i2c_matches[] = { static const struct of_device_id ms5611_i2c_matches[] = {
{ .compatible = "meas,ms5611" }, { .compatible = "meas,ms5611" },
{ .compatible = "ms5611" },
{ .compatible = "meas,ms5607" }, { .compatible = "meas,ms5607" },
{ .compatible = "ms5607" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, ms5611_i2c_matches); MODULE_DEVICE_TABLE(of, ms5611_i2c_matches);
......
...@@ -119,9 +119,7 @@ static int ms5611_spi_remove(struct spi_device *spi) ...@@ -119,9 +119,7 @@ static int ms5611_spi_remove(struct spi_device *spi)
#if defined(CONFIG_OF) #if defined(CONFIG_OF)
static const struct of_device_id ms5611_spi_matches[] = { static const struct of_device_id ms5611_spi_matches[] = {
{ .compatible = "meas,ms5611" }, { .compatible = "meas,ms5611" },
{ .compatible = "ms5611" },
{ .compatible = "meas,ms5607" }, { .compatible = "meas,ms5607" },
{ .compatible = "ms5607" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, ms5611_spi_matches); MODULE_DEVICE_TABLE(of, ms5611_spi_matches);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment