iio: pressure: bmp280: convert to i2c's .probe_new()
authorAngel Iglesias <ang.iglesiasg@gmail.com>
Sun, 13 Nov 2022 17:54:46 +0000 (18:54 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 23 Nov 2022 20:01:38 +0000 (20:01 +0000)
commit12491d35551df69709777bd7769e1e33641943cc
tree6262786569f166024bbdf9a94568a0a3a0a3fb53
parentb15654dd11e62ed348d5ec7f93b8ea3ad72f8c56
iio: pressure: bmp280: convert to i2c's .probe_new()

Use i2c_client_get_device_id() to get the i2c_device_id* parameter in the
.new_probe() callback.

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