Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9684868ybi; Wed, 10 Jul 2019 14:59:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4qTdtNgogKWXlmOldWEQTd7wpvystJei2YhOFyYBXTutDh1TdENr76/nlXzos9QCgdhWQ X-Received: by 2002:a17:902:be15:: with SMTP id r21mr471532pls.293.1562795973149; Wed, 10 Jul 2019 14:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562795973; cv=none; d=google.com; s=arc-20160816; b=rybZaDvK0+k4hU9Y7mHcg43iFCxY8mbdn7wtYYsTe1zxJj8TCq+C9ISxzbi2v2nS+e z3VFv936bKOPz+l8QCqdaLAGpu5SUuZ+nVO/oQ79BMZmq1CxVIn1xv8sPzm8/3CXQkwe ht7eRBy7kwDaHF27yXSM8NsY4+SYSyoCELILVYswf7lcOws6eR1YV2qFOvrM+9r7jpNp h2Ob9ZJ0Xjv2WGeOouszw4PQtV5HO7Y8WrXrnCyUOvLyNWbwKyiNbn1DBeuPOGBtvpgs NW+EBOt/buJLO8Wpu5S/gzWVfQQ0Dy2nQoi/1S4d72xos687rotZklBmLC8ogI78R8aa +trA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zkV/PXxjoMVGwo+v3R6BYlepy6dVKStHl8YL+Fe+Xfg=; b=TX0dSe6QcI2b0PuoxYvf7gwxRcBs5d3BSLNXkuwLQfduv2VdNbKL+HCnU+ieXzuNMA JqZ/Xl+hOT0H3skiTpSbQ1f6dVIuXPt2A9oHTGprctHBDk235S2mgyexi64cWmmY6pI7 QFioAocWKTpdQFiHeyZwOXBdzLknxzJalKFKT9STxF2T02JQ30vhrNbBGgd9CjjxzVE8 H8NUNlOrbqHWWWK6vPcbwGx5SpoV6bjtJ3h21tnaqYLO2zhHjFbT78YdEFzpqjtQV9z2 g3PTNr/uOfJtZHuJwTqn8IYX/G7Mm8ilPCXTwBn0Ij+gPeHohZdRXLUIpU8wzznms9+k CVgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="nPv/43Tb"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q13si3273263pjb.13.2019.07.10.14.59.16; Wed, 10 Jul 2019 14:59:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="nPv/43Tb"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727770AbfGJVwC (ORCPT + 99 others); Wed, 10 Jul 2019 17:52:02 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:39948 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726708AbfGJVwC (ORCPT ); Wed, 10 Jul 2019 17:52:02 -0400 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1E52054B; Wed, 10 Jul 2019 23:51:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1562795519; bh=n9Pm9Mc4TgImTCNTyykIU/BdefXoMk27hoxsRwtAEf4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nPv/43TbmXMd3Dvb1afM5V++ioSzUNFPm0UnkVjEvj0BXJuwVc0hvmCUbPWWgooJa xOrK98+2FvN0L3pD6WuPuoUFqo8WuoGpd/EBdCvK1bVhCyw+9JdDKDtbJXuGwNujVX mN8rKf+b8wcHtDbbPHN0qqTY+wRcpdpLxEx+LDmk= From: Kieran Bingham To: linux-i2c@vger.kernel.org, linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang , Kieran Bingham , Eduardo Valentin , Mauro Carvalho Chehab , Kate Stewart , Hans Verkuil , Thomas Gleixner , Greg Kroah-Hartman , linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/6] media: radio: si4713: Convert to new i2c device probe() Date: Wed, 10 Jul 2019 22:51:44 +0100 Message-Id: <20190710215149.9208-2-kieran.bingham+renesas@ideasonboard.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190710215149.9208-1-kieran.bingham+renesas@ideasonboard.com> References: <20190710215149.9208-1-kieran.bingham+renesas@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The I2C core framework provides a simplified probe framework from commit b8a1a4cd5a98 ("i2c: Provide a temporary .probe_new() call-back type"). This driver does not utilise the i2c_device_id table in the probe, so we can easily convert it to utilise the simplfied i2c driver registration. Signed-off-by: Kieran Bingham --- drivers/media/radio/si4713/si4713.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/radio/si4713/si4713.c b/drivers/media/radio/si4713/si4713.c index 7d97de2fa56c..7f3aee495ed3 100644 --- a/drivers/media/radio/si4713/si4713.c +++ b/drivers/media/radio/si4713/si4713.c @@ -1427,8 +1427,7 @@ static const struct v4l2_ctrl_config si4713_alt_freqs_ctrl = { * I2C driver interface */ /* si4713_probe - probe for the device */ -static int si4713_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int si4713_probe(struct i2c_client *client) { struct si4713_device *sdev; struct v4l2_ctrl_handler *hdl; @@ -1660,7 +1659,7 @@ static struct i2c_driver si4713_i2c_driver = { .name = "si4713", .of_match_table = of_match_ptr(si4713_of_match), }, - .probe = si4713_probe, + .probe_new = si4713_probe, .remove = si4713_remove, .id_table = si4713_id, }; -- 2.20.1