Commit 7cf15f42 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Jonathan Cameron
Browse files

iio: Switch i2c drivers back to use .probe()



After commit b8a1a4cd ("i2c: Provide a temporary .probe_new()
call-back type"), all drivers being converted to .probe_new() and then
03c835f4 ("i2c: Switch .probe() to not take an id parameter") convert
back to (the new) .probe() to be able to eventually drop .probe_new() from
struct i2c_driver.

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230515205048.19561-1-u.kleine-koenig@pengutronix.de


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 76aa53e2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@ static struct i2c_driver adxl313_i2c_driver = {
		.name	= "adxl313_i2c",
		.of_match_table = adxl313_of_match,
	},
	.probe_new	= adxl313_i2c_probe,
	.probe		= adxl313_i2c_probe,
	.id_table	= adxl313_i2c_id,
};

+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ static struct i2c_driver adxl345_i2c_driver = {
		.of_match_table = adxl345_of_match,
		.acpi_match_table = adxl345_acpi_match,
	},
	.probe_new	= adxl345_i2c_probe,
	.probe		= adxl345_i2c_probe,
	.id_table	= adxl345_i2c_id,
};
module_i2c_driver(adxl345_i2c_driver);
+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ static struct i2c_driver adxl355_i2c_driver = {
		.name	= "adxl355_i2c",
		.of_match_table = adxl355_of_match,
	},
	.probe_new	= adxl355_i2c_probe,
	.probe		= adxl355_i2c_probe,
	.id_table	= adxl355_i2c_id,
};
module_i2c_driver(adxl355_i2c_driver);
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ static struct i2c_driver adxl367_i2c_driver = {
		.name = "adxl367_i2c",
		.of_match_table = adxl367_of_match,
	},
	.probe_new = adxl367_i2c_probe,
	.probe = adxl367_i2c_probe,
	.id_table = adxl367_i2c_id,
};

+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ static struct i2c_driver adxl372_i2c_driver = {
		.name = "adxl372_i2c",
		.of_match_table = adxl372_of_match,
	},
	.probe_new = adxl372_i2c_probe,
	.probe = adxl372_i2c_probe,
	.id_table = adxl372_i2c_id,
};

Loading