iio: pressure: bmp280: Use spi_get_device_match_data()
authorAngel Iglesias <ang.iglesiasg@gmail.com>
Sun, 22 Oct 2023 17:22:18 +0000 (19:22 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 16 Nov 2023 19:10:27 +0000 (19:10 +0000)
commitfaac4dda9a91f94d96cb38676ca4177a54666d75
treefc9b9a06eb93087487dde95d1684464407ef1f52
parentaace22e375e287ae825b3b0a8a1d70820cfe27b9
iio: pressure: bmp280: Use spi_get_device_match_data()

Use the spi_get_device_match_data() helper instead of
device_get_match_data() and the fallback match_id logic.

Signed-off-by: Angel Iglesias <ang.iglesiasg@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/9ea8ac90b2b8a8cf45803d0435243c0bee009b37.1697994521.git.ang.iglesiasg@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/bmp280-spi.c