From patchwork Wed Jul 10 21:51:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 1130576 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-i2c-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="nPv/43Tb"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 45kXw26bLnz9sNg for ; Thu, 11 Jul 2019 07:52:02 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727729AbfGJVwC (ORCPT ); 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 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@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 Reviewed-by: Wolfram Sang --- 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, };