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: stk8ba50: 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-22-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
d18e7060 3d8a49eb

+2 -3
+2 -3
drivers/iio/accel/stk8ba50.c
··· 379 379 .postdisable = stk8ba50_buffer_postdisable, 380 380 }; 381 381 382 - static int stk8ba50_probe(struct i2c_client *client, 383 - const struct i2c_device_id *id) 382 + static int stk8ba50_probe(struct i2c_client *client) 384 383 { 385 384 int ret; 386 385 struct iio_dev *indio_dev; ··· 543 544 .pm = pm_sleep_ptr(&stk8ba50_pm_ops), 544 545 .acpi_match_table = ACPI_PTR(stk8ba50_acpi_id), 545 546 }, 546 - .probe = stk8ba50_probe, 547 + .probe_new = stk8ba50_probe, 547 548 .remove = stk8ba50_remove, 548 549 .id_table = stk8ba50_i2c_id, 549 550 };