Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7048804ybi; Thu, 13 Jun 2019 08:42:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcxVFALIcvh2V37qjaGrBnwZVdwV8bMfmMfLKGZl6gaDRwl/YQ3g4eKS6jP1vN1oG/jocE X-Received: by 2002:a17:902:86:: with SMTP id a6mr22576269pla.244.1560440560665; Thu, 13 Jun 2019 08:42:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440560; cv=none; d=google.com; s=arc-20160816; b=GfQ7M9c6+0VxEh63hhtOwSCy8sMsM+3+wVrZQJkRBqacTL+V4sP1oKSBjEl6U12YC1 d+hVmtwJIUR8lWgkht7LrZxxwU87m20v2vZm6ZvCvlwIdOCTz9ckhxUv4RJ4S5FRj0Wq hM5bxpBCrSPD63J1xTCK1A6uXqLpRag1TW8Z6LaS6q0BhwCyWRvqN6T0IkdYoZ2YFJcK yMGd+MymzDXgtP+6A8UoEl7Ty7qmqdphTI5L4K7IhRuuBQbswBRAz4kpgSB3rvZfOjEq FK/79ST8MFhM8LNDC0cJcOsJvgJPpFxn/R39wlpNXcpfgjmPiUVzMZG0WftgXsAPbdAa JckQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organisation:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=3/hJ5O+esBadhbTrHCnfXCwlNKEdoYdIWlsd+2nQ01o=; b=ZNnNXqcINzXZnVQDJnphpnm3EptdJ+gpy5AMuotHBUUgx9y4Xul3j50Fncw2vAIJNl CVuCVqBn5DVbjMEQPAgUP7fZtsQq5N7eUzy3ovuvkQZTi3fjasaRXh1fe6r3Md1vbJA3 nkaZWI7BarbXGRt8OKcGw/kXwtfnvkXHNB8C+Z0srsmwSr2TNoLmnpzyx0+iEqY0gzcy r5tXUk4iRQXiXKeOBaChr2ztavRaykVYaXISTWyhAlQh+cYW8OPm8kkvII0el3FqwmZr xjEU8HWXBenRUzZXpPsG2TJWYPNBbU2BrsWL49gdIy/os1kN6GOyBusOOpLPEaHM65WT Hxzw== ARC-Authentication-Results: i=1; mx.google.com; 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 q18si80770pgv.456.2019.06.13.08.42.25; Thu, 13 Jun 2019 08:42:40 -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; 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 S1732807AbfFMPlm (ORCPT + 99 others); Thu, 13 Jun 2019 11:41:42 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:40628 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731881AbfFMJuH (ORCPT ); Thu, 13 Jun 2019 05:50:07 -0400 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 Cc: linux-i2c@vger.kernel.org, David Woodhouse , Brian Norris , Marek Vasut , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org 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-Type: text/plain; charset=us-ascii 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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 >