Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9156351ybi; Wed, 10 Jul 2019 05:39:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9Jci25AR2hzsa/lm71Sm1zdy0s6J2b2Cdq8U80hiSPyytIsd8Sj2wEMUf2sC1XOe7y/C1 X-Received: by 2002:a17:90a:898e:: with SMTP id v14mr6709050pjn.119.1562762397957; Wed, 10 Jul 2019 05:39:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562762397; cv=none; d=google.com; s=arc-20160816; b=EQ3oxnIFBQpGC+vbiuCzws9G2BZ63/sgUZ9SeUEw4UNEOkI3ajQ0pqEkmAabqkMyVc EEJyGhmqDUY0m7kiCouleAvS/+BgOrHT0HWTafXWyzF+Ct6IMRllYExoNfFqoU5Xhl3Y qQiEglTrEHZlgTntTh7IYS12w9onuQ1xJoC+BUeQpGw4/NI61kGdH+9yO+R1Ct3ocd1R G+pERKcc3Q2en7QdqY61gHTpywWqc6nUMwfdqeAmKSNlZ+1v+OveZWnPaQv0tAdeUIW0 lMmckWQVQ22v+3em3eUuOH0FkI5tPZegbTmfO0sviTQinOvONy84VcE+WM/NdsJEP9bu z+PA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=e7Pb7OgD9s/7rdAN+NJt87/PvMSy/5yVyIwsWIlz8Qc=; b=SWcysBnrSopL2Y+Svlyiv//0kxhvH71j/3fVhPnQxT89jmUNHC+JqvtVPV+WnEMAOl TuNXhRmADsPY66bm3Tp/W9JfPfmM5eJXJXEA4A2c9t/amlqBJSIcOd/gyHj3HjHxIknL SkCjmVT+EtbOI7INjueFolsjeyARF26e/5qSycFtxRW9ib0hcAfqv1PJ8gafhJJ8bQ1S Y1BJKA1uByVm7ZqyBcMpbSvpybS8M73XvubrsHRDVkksLRqmnOYvywiPX5CL7Nhwoqqp /nt/T2FbIa+Eb6zUFD/I2by458X1eNRa2K1FLPvqOLFQV9MCj/YgvjLTwqZCYH2ptW0X ztcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=PkSp2haE; 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 n6si2089175pff.207.2019.07.10.05.39.41; Wed, 10 Jul 2019 05:39:57 -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=PkSp2haE; 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 S1727419AbfGJMhc (ORCPT + 99 others); Wed, 10 Jul 2019 08:37:32 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:34974 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725956AbfGJMhb (ORCPT ); Wed, 10 Jul 2019 08:37:31 -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 1E62731C; Wed, 10 Jul 2019 14:37:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1562762249; bh=rXmN/ZP1jKpCFxlT6ZQ3Ed8fIwsZSXGnqlc6PGjlcj8=; h=From:To:Cc:Subject:Date:From; b=PkSp2haE0jZmJsqrMwJ1rxk/Cok03Jt0bZbMIZ/5e19X7e8fcGgs51dJLcALqvA41 pAADSeNs5/vyArQ7vyiqt+t1x9fpsh4GaUv4Dg1kTyXlMn3fWBwaGULBbfBJ0KNOY5 BprfaHdPT11bG4UE3ij96ouj+9QPnuVv5rNOY2C0= From: Kieran Bingham To: linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Kieran Bingham Cc: Wolfram Sang , Laurent Pinchart , Kieran Bingham , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] media: i2c: adv748x: Convert to new i2c device probe() Date: Wed, 10 Jul 2019 13:37:19 +0100 Message-Id: <20190710123719.3376-1-kieran.bingham+renesas@ideasonboard.com> X-Mailer: git-send-email 2.20.1 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"). Convert the ADV748x to utilise this simplfied i2c driver registration. Signed-off-by: Kieran Bingham --- drivers/media/i2c/adv748x/adv748x-core.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/media/i2c/adv748x/adv748x-core.c b/drivers/media/i2c/adv748x/adv748x-core.c index 097e94279cf7..ae2b6eb93e09 100644 --- a/drivers/media/i2c/adv748x/adv748x-core.c +++ b/drivers/media/i2c/adv748x/adv748x-core.c @@ -677,8 +677,7 @@ static void adv748x_dt_cleanup(struct adv748x_state *state) of_node_put(state->endpoints[i]); } -static int adv748x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adv748x_probe(struct i2c_client *client) { struct adv748x_state *state; int ret; @@ -806,13 +805,6 @@ static int adv748x_remove(struct i2c_client *client) return 0; } -static const struct i2c_device_id adv748x_id[] = { - { "adv7481", 0 }, - { "adv7482", 0 }, - { }, -}; -MODULE_DEVICE_TABLE(i2c, adv748x_id); - static const struct of_device_id adv748x_of_table[] = { { .compatible = "adi,adv7481", }, { .compatible = "adi,adv7482", }, @@ -825,9 +817,8 @@ static struct i2c_driver adv748x_driver = { .name = "adv748x", .of_match_table = adv748x_of_table, }, - .probe = adv748x_probe, + .probe_new = adv748x_probe, .remove = adv748x_remove, - .id_table = adv748x_id, }; module_i2c_driver(adv748x_driver); -- 2.20.1