Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: accel: stk8312: Convert to i2c's .probe_new()

The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20221023132302.911644-21-u.kleine-koenig@pengutronix.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Uwe Kleine-König and committed by
Jonathan Cameron
3d8a49eb 76e4a118

+2 -3
+2 -3
drivers/iio/accel/stk8312.c
··· 498 498 .postdisable = stk8312_buffer_postdisable, 499 499 }; 500 500 501 - static int stk8312_probe(struct i2c_client *client, 502 - const struct i2c_device_id *id) 501 + static int stk8312_probe(struct i2c_client *client) 503 502 { 504 503 int ret; 505 504 struct iio_dev *indio_dev; ··· 644 645 .name = STK8312_DRIVER_NAME, 645 646 .pm = pm_sleep_ptr(&stk8312_pm_ops), 646 647 }, 647 - .probe = stk8312_probe, 648 + .probe_new = stk8312_probe, 648 649 .remove = stk8312_remove, 649 650 .id_table = stk8312_i2c_id, 650 651 };