Stephen Kitt 3f4a332247 rtc: use simple i2c probe
All these drivers have an i2c probe function which doesn't use the
"struct i2c_device_id *id" parameter, so they can trivially be
converted to the "probe_new" style of probe with a single argument.

This change was done using the following Coccinelle script, and fixed
up for whitespace changes:

@ rule1 @
identifier fn;
identifier client, id;
@@

- static int fn(struct i2c_client *client, const struct i2c_device_id *id)
+ static int fn(struct i2c_client *client)
{
...when != id
}

@ rule2 depends on rule1 @
identifier rule1.fn;
identifier driver;
@@

struct i2c_driver driver = {
-	.probe
+	.probe_new
		=
(
		   fn
|
-		   &fn
+		   fn
)
		,
};

Signed-off-by: Stephen Kitt <steve@sk2.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220610162346.4134094-1-steve@sk2.org
2022-06-24 21:24:02 +02:00
..
2022-03-23 19:58:41 +01:00
2022-06-24 21:24:02 +02:00
2022-05-17 23:11:44 +02:00
2021-08-10 23:21:46 +02:00
2022-05-17 23:11:44 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2021-12-02 23:23:38 +01:00
2022-06-24 21:24:02 +02:00
2021-09-25 23:22:28 +02:00
2022-06-24 21:24:02 +02:00
2022-03-23 19:58:38 +01:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2021-04-29 23:03:26 +02:00
2021-05-25 00:41:25 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2021-10-01 23:28:28 +02:00
2021-01-16 23:19:26 +01:00
2022-06-01 23:19:17 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2022-04-19 16:27:05 +02:00
2021-10-18 17:20:50 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2022-05-25 01:24:21 +02:00
2021-10-23 23:57:23 +02:00
2021-09-25 23:26:37 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2022-06-01 14:48:13 -07:00
2020-12-03 23:43:23 +01:00
2022-06-24 21:24:02 +02:00