Commit 76ad5c0a authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Hans Verkuil
Browse files

media: v4l2-core/tuner-core: 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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil: deleted kerneldoc reference to removed id argument]
parent 80458f63
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -614,7 +614,6 @@ static void tuner_lookup(struct i2c_adapter *adap,
 *tuner_probe - Probes the existing tuners on an I2C bus
 *
 * @client:	i2c_client descriptor
 * @id:		not used
 *
 * This routine probes for tuners at the expected I2C addresses. On most
 * cases, if a device answers to a given I2C address, it assumes that the
@@ -625,8 +624,7 @@ static void tuner_lookup(struct i2c_adapter *adap,
 * During client attach, set_type is called by adapter's attach_inform callback.
 * set_type must then be completed by tuner_probe.
 */
static int tuner_probe(struct i2c_client *client,
		       const struct i2c_device_id *id)
static int tuner_probe(struct i2c_client *client)
{
	struct tuner *t;
	struct tuner *radio;
@@ -1413,7 +1411,7 @@ static struct i2c_driver tuner_driver = {
		.name	= "tuner",
		.pm	= &tuner_pm_ops,
	},
	.probe		= tuner_probe,
	.probe_new	= tuner_probe,
	.remove		= tuner_remove,
	.command	= tuner_command,
	.id_table	= tuner_id,