From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B1B9C31E45 for ; Thu, 13 Jun 2019 09:50:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F1E4920896 for ; Thu, 13 Jun 2019 09:50:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="mqJ2iPJu" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F1E4920896 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=verge.net.au Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VEs6o/3uclqnYIX645AjGH6Uhy50VQlu/g6kKAsVzTg=; b=mqJ2iPJuv/ahTk 8rS+vC8qQcwJPk/MNNt5QshYHtNSxsy6e8PvSPbahCgMU6pzebpP5ZRFIEFs+j3v7wfVJqDxDa2MN /HMmOp1BSdTdL5Ws6wX3B3t2Bdys2TrXrFRO+uKHvJZoios2SoC0SFTTYmPvZp/N9+uMkKc7/3+Co NPLQauD392/Un6BUyCdhDRZpHLudZK34hMoPmxY3qbdO/x0hmQPPpiyAHIW3VoLsIuGU0pNhefE0Q 7ntynL1RmwEaAsuS3CW8YUeNfgQS/8xu1yWS/76it2F4aIS0D5uZjg4FhDDaT2tK3iTJ0WmHu1kv7 z3ntwQ6fHxK30w4co7Wg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hbMN2-0005vH-Oj; Thu, 13 Jun 2019 09:50:12 +0000 Received: from kirsty.vergenet.net ([202.4.237.240]) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hbMMz-0005Ia-8t for linux-mtd@lists.infradead.org; Thu, 13 Jun 2019 09:50:10 +0000 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id D822025B7FA; Thu, 13 Jun 2019 19:50:04 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id DC451940483; Thu, 13 Jun 2019 11:50:02 +0200 (CEST) Date: Thu, 13 Jun 2019 11:50:02 +0200 From: Simon Horman To: Wolfram Sang Subject: Re: [PATCH 15/34] mtd: maps: pismo: simplify getting the adapter of a client Message-ID: <20190613095002.r5shpabxw7jmsmcf@verge.net.au> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-16-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190608105619.593-16-wsa+renesas@sang-engineering.com> Organisation: Horms Solutions BV User-Agent: NeoMutt/20170113 (1.7.2) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190613_025009_468277_F2EC363E X-CRM114-Status: GOOD ( 15.68 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vignesh Raghavendra , Richard Weinberger , linux-kernel@vger.kernel.org, Marek Vasut , linux-mtd@lists.infradead.org, linux-i2c@vger.kernel.org, Miquel Raynal , Brian Norris , David Woodhouse Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org On Sat, Jun 08, 2019 at 12:55:54PM +0200, Wolfram Sang wrote: > We have a dedicated pointer for that, so use it. Much easier to read and > less computation involved. > > Signed-off-by: Wolfram Sang Reviewed-by: Simon Horman > --- > > Please apply to your subsystem tree. > > drivers/mtd/maps/pismo.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mtd/maps/pismo.c b/drivers/mtd/maps/pismo.c > index 788d4996e2c1..7fcae3af435c 100644 > --- a/drivers/mtd/maps/pismo.c > +++ b/drivers/mtd/maps/pismo.c > @@ -211,7 +211,7 @@ static int pismo_remove(struct i2c_client *client) > static int pismo_probe(struct i2c_client *client, > const struct i2c_device_id *id) > { > - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); > + struct i2c_adapter *adapter = client->adapter; > struct pismo_pdata *pdata = client->dev.platform_data; > struct pismo_eeprom eeprom; > struct pismo_data *pismo; > -- > 2.19.1 > ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/