Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4550556pxa; Mon, 10 Aug 2020 11:51:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxruv2zY1h2C05FkuVVOh7gfjiqInOF+Yz+O6IHvvg1g8iwxxTBusW6FenictmFL6XJam0j X-Received: by 2002:a05:6402:1218:: with SMTP id c24mr21835340edw.44.1597085482343; Mon, 10 Aug 2020 11:51:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597085482; cv=none; d=google.com; s=arc-20160816; b=qPk3AzyVV4CmhVh4oML6P5yg4JI9FhZmKx2j2HL6NtGzqUS2xPNfQx7aafp8MZ1hpN Yf2TuNT//66nkj1Y5ptU+GWv9hW0sASwy8MbIZ0TQZG0JAJFwXaxE9apjqYTNaGmUgAv vDpccvWyZ1yU52ZP/PSFyWXcHmSvhByq359AqdSWGM/1dVPUuhaPvhbgDONynCuBN0Ta n4wrmvVQ5odAjTYhKWyZS2Afk7cHDO3H6Lyppx7qB7wU+fYbO3nI5JRayKnOOGpKbm0h vgxvhW+AFJ0dgGRUPbM5kHX7PooG9l/PsXOxZ0y9hiDU3qXLVlraTInleqdhM4Zz8fAE veog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5nwMnMw3DbCMTn2Fuh9eAKa97/L+CWpRN1IQSKfIrY8=; b=GTkIrZcN0cAsVtgSGM132YpgHYA9Jde+ZUnyVPIYJvsEgFZ/lwo0i1qW8COkw5tYzL Zj/QEtTwN+7CQaFjxj7YXbdYcy5cXRj7FT0mbM/OV2O+GTNW9FpuVYDtyxAXwlVZcN37 UqtQXBM48nZFS9J4TGEFnzFz3XLYL+yIUzZDuFiw6Dyt/YQrkL70yfDiGrYE5LHj02If wdg7odpmsV8/v+4UEiT37hOYFaTo6mDpb07ijrqIJbv4gwAyoAbdEqUmr4RDhV5+e9yI LsmXfMJU0ipryIYsOleZuP3ggkre7TVsrAebwz7gh3y46eehiAzyOczsKQqgev6VOrHK 1ekw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=MH2gaLrd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n28si12152586eda.478.2020.08.10.11.50.58; Mon, 10 Aug 2020 11:51:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=MH2gaLrd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728212AbgHJSsA (ORCPT + 99 others); Mon, 10 Aug 2020 14:48:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728071AbgHJSr7 (ORCPT ); Mon, 10 Aug 2020 14:47:59 -0400 Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10720C061756 for ; Mon, 10 Aug 2020 11:47:59 -0700 (PDT) Received: by mail-qt1-x842.google.com with SMTP id e5so7582204qth.5 for ; Mon, 10 Aug 2020 11:47:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5nwMnMw3DbCMTn2Fuh9eAKa97/L+CWpRN1IQSKfIrY8=; b=MH2gaLrd+ufZ8bGh/fpu4X/Fn6WrIMiNmClU1rLt2mwix16/dTxs5cvPwyjuWaZAv9 ny8pcHOpdZmbrUMgAk2WpNSV3ClKUu280iuq0GCyH0opTG2DXOf5/MMeNM4y2zEX8MyO 33K5A5v6VJjE3i5tb62cCOeHWnBvFtJh+eTJzeAABy9TPV5RhQSXdinWMpcE1+PgeInS yTpaN7g9UexxUps7yD0kDaG4wZLrVrIr/NBqPGwnV3IGaalDqL2OeKd5GHFZ9pmszeG8 6VNyA6FQPcpGQT+eRxsYuelA2j+R6xZLBPFMcrCP6sHix4PoSt24AOWRq4KODFO2wJPL jcHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5nwMnMw3DbCMTn2Fuh9eAKa97/L+CWpRN1IQSKfIrY8=; b=CjeE7HxDQfWdepAzNGqUWfY/x/vZjgvP6nj7nA3paBooiq1jRrd2b59VPiJDo2aRQI RabWfJKLIRF5Vufw+OUEe5PGn+imtRAwctkTwvYQH4HCtKawq8pCXpLhw2Ql6NBthoks xOFJ+mO8L/LbYCm0dW0wVFeJ4U6BM/8yXa+ft+mVgomPNUGTXCnuMiKqaL+yCCHF3oSw nQILSlCLrLPohYvOZdUliPcT5ymlnagHXiPrEDh7xMopFYxNwyKtVmDp6B80ohQfICfo X/nBHNNUjR82kdS6GTwSbnhpQPjlgrS80rN60Y8A14FLdN+JbENhtIaEVsDWUIUj8WRR znYQ== X-Gm-Message-State: AOAM533DAQUjTXk4cMFh4J5mSTPoOO/cfdcPGmo3LOMe3Dwx3OH2/WoE n2duQ8JzVKe8NbwQ9EwISBH3xfMjjn5K/8oJKCgJnQ== X-Received: by 2002:aed:21da:: with SMTP id m26mr29107739qtc.197.1597085277928; Mon, 10 Aug 2020 11:47:57 -0700 (PDT) MIME-Version: 1.0 References: <20200809172444.16019-1-steve@sk2.org> In-Reply-To: <20200809172444.16019-1-steve@sk2.org> From: Bartosz Golaszewski Date: Mon, 10 Aug 2020 20:47:47 +0200 Message-ID: Subject: Re: [PATCH v2] ARM: davinci: use simple i2c probe function To: Stephen Kitt Cc: Sekhar Nori , Russell King , arm-soc , linux-i2c , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 9, 2020 at 7:24 PM Stephen Kitt wrote: > > The i2c probe functions here don't use the id information provided in > their second argument, so the single-parameter i2c probe function > ("probe_new") can be used instead. > > This avoids scanning the identifier tables during probes. > > Signed-off-by: Stephen Kitt > --- > Changes since v1: > - split into per-sub-architecture patches. > > arch/arm/mach-davinci/board-dm644x-evm.c | 5 ++--- > arch/arm/mach-davinci/board-dm646x-evm.c | 10 ++++------ > 2 files changed, 6 insertions(+), 9 deletions(-) > > diff --git a/arch/arm/mach-davinci/board-dm644x-evm.c b/arch/arm/mach-davinci/board-dm644x-evm.c > index a5d3708fedf6..d0dcf69cc76d 100644 > --- a/arch/arm/mach-davinci/board-dm644x-evm.c > +++ b/arch/arm/mach-davinci/board-dm644x-evm.c > @@ -548,8 +548,7 @@ static const struct property_entry eeprom_properties[] = { > */ > static struct i2c_client *dm6446evm_msp; > > -static int dm6446evm_msp_probe(struct i2c_client *client, > - const struct i2c_device_id *id) > +static int dm6446evm_msp_probe(struct i2c_client *client) > { > dm6446evm_msp = client; > return 0; > @@ -569,7 +568,7 @@ static const struct i2c_device_id dm6446evm_msp_ids[] = { > static struct i2c_driver dm6446evm_msp_driver = { > .driver.name = "dm6446evm_msp", > .id_table = dm6446evm_msp_ids, > - .probe = dm6446evm_msp_probe, > + .probe_new = dm6446evm_msp_probe, > .remove = dm6446evm_msp_remove, > }; > > diff --git a/arch/arm/mach-davinci/board-dm646x-evm.c b/arch/arm/mach-davinci/board-dm646x-evm.c > index 4600b617f9b4..2dce16fff77e 100644 > --- a/arch/arm/mach-davinci/board-dm646x-evm.c > +++ b/arch/arm/mach-davinci/board-dm646x-evm.c > @@ -160,8 +160,7 @@ static struct platform_device davinci_aemif_device = { > #define DM646X_EVM_ATA_PWD BIT(1) > > /* CPLD Register 0 Client: used for I/O Control */ > -static int cpld_reg0_probe(struct i2c_client *client, > - const struct i2c_device_id *id) > +static int cpld_reg0_probe(struct i2c_client *client) > { > if (HAS_ATA) { > u8 data; > @@ -197,7 +196,7 @@ static const struct i2c_device_id cpld_reg_ids[] = { > static struct i2c_driver dm6467evm_cpld_driver = { > .driver.name = "cpld_reg0", > .id_table = cpld_reg_ids, > - .probe = cpld_reg0_probe, > + .probe_new = cpld_reg0_probe, > }; > > /* LEDS */ > @@ -402,8 +401,7 @@ static struct snd_platform_data dm646x_evm_snd_data[] = { > #ifdef CONFIG_I2C > static struct i2c_client *cpld_client; > > -static int cpld_video_probe(struct i2c_client *client, > - const struct i2c_device_id *id) > +static int cpld_video_probe(struct i2c_client *client) > { > cpld_client = client; > return 0; > @@ -424,7 +422,7 @@ static struct i2c_driver cpld_video_driver = { > .driver = { > .name = "cpld_video", > }, > - .probe = cpld_video_probe, > + .probe_new = cpld_video_probe, > .remove = cpld_video_remove, > .id_table = cpld_video_id, > }; > > base-commit: bcf876870b95592b52519ed4aafcf9d95999bc9c > -- > 2.20.1 > Reviewed-by: Bartosz Golaszewski