Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1311465ybz; Fri, 17 Apr 2020 21:17:01 -0700 (PDT) X-Google-Smtp-Source: APiQypLUnlXUvFdJK4fF1HYgvTjRPETnhcSO3jpzV8kYaMPcPSuWS1k3gi5I3+Wyji49XC8W/K9K X-Received: by 2002:aa7:d788:: with SMTP id s8mr5839026edq.311.1587183421267; Fri, 17 Apr 2020 21:17:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587183421; cv=none; d=google.com; s=arc-20160816; b=YwC01aQG02jaxLM6yjAZU4V+krxZ6b0zQ6NDA8HjebsSlOvg4EGKeD4wqjwHKbD5x/ t9tf5OQj/oODFKeQNjbZdbVCUJVGShzZJGzkxChhhqDjV/+fkta16pgnklmwK1JyDhQ1 OZK4M+rdSZLuODuP/nY42UxMVfcYUxBBkZbUJM9xdVj3m25hPCHsx8ofeDFAf67yPB/L Kihi85iaMO6QKHgBMH33lL13D0AT7tJLlWNQshbpLwN+AVQ3ZtJsw+6s6jkw26aSPCDp 5rDNbZwWipfxVhzsaBOEzLq8Bae31PIs03ZcOTW7SEa2jp0Y4f/UgQuvvA/DPu4ppL8s SCWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eH90KozuksShDLEA3UFs+8T8NeL3+L+gABGBzpWbZmo=; b=K/QvkPE431k1UJKbZxQ0BNc0jcAbwZd3IqJMsLMZTAzSH2mtM1kMceTF/SPZFj1mu1 KJjqarawQGiZf6EdudmeK/AAhvMDz+OBeFrmMU+YYxaK2IXZP3bStSIsM62g0LfaH4J8 o52U01gyDHAfMJKvbxcLQ2eGsw8nTxSHt+8XOQ35Xyms45QmhB81tAHs8oaXOKBOUAHl gseqeiv6VhxFcqY6rQ/89mr/q90hqex5uxZjG76/t2qwVoWlvZwCapJkC6+2gu+3vmFd 47ddZ7QNahnWAK2gj2OfzH+xTjenpyX6BHyiTVzvO7jgPxz7sH3t/Os9DT+sTzy72Xw0 UhRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CGR92FnG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e6si17762940edc.18.2020.04.17.21.15.48; Fri, 17 Apr 2020 21:17:01 -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=@gmail.com header.s=20161025 header.b=CGR92FnG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725843AbgDREHA (ORCPT + 99 others); Sat, 18 Apr 2020 00:07:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725747AbgDREHA (ORCPT ); Sat, 18 Apr 2020 00:07:00 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCA5EC061A0C; Fri, 17 Apr 2020 21:06:59 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id z6so1712046plk.10; Fri, 17 Apr 2020 21:06:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=eH90KozuksShDLEA3UFs+8T8NeL3+L+gABGBzpWbZmo=; b=CGR92FnGZ4icoBWX8hfN+/b0UlO1ETKueJ2FFj79/OgReXHdyZWQRzuA7fLFZP4wjA y0bFX1tU7yThL+JSN6SKAmCbjz6oNAAvfEBTa5s6hZNVf8REkcHM9C/cnctYmeKI65sH J4VI1Qn8gd2JEpy91B6Y/f9gLQCn7tbKl5+axa8qw3PCl81jx2LOnjylPnO4uESXBq3y HqfHKSR6FtZiOlvWbhGhfUhpvBeK24/2kcszXi60AeCxskD+jIy2z8FOsrn5/pD9Tzit VHwkvQMwG035b5bOEsKb5ZtY9t8NLEpzPjWXyPWkx5u0xXGfmSqfIpUkzEHTu5WyoCwj MnTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=eH90KozuksShDLEA3UFs+8T8NeL3+L+gABGBzpWbZmo=; b=E0JRFrTHPXT3PyEktJ6l0j75er4T0liMIidbVCWchIxu7mVgiRRR+1ZG/2JyIHe07t k2yCKWeNlHLFuSlHZYD5WipJBpvEEiIalT7H13xADofM5FCDAIvDypVJkXwVzRmaT6Pp 6Xjl9HCig9TiBTeds4OHj5TTJErqncjY799nGe7ahVbVSHcPohtqlrzNdotUWsjR71r+ I98SJUnHE1XprAbt8VxMPPHoACyt36+b7Wt0rGbxbGaOWF+iZX6Wj76kKgDX24ju79n2 paIkLMnkOpHoVdl7XZhZ8qfcXV9sPEpsX3zwF8ERLZro9+9Gg3p3VTpBLkByvbzy/zLa mgsg== X-Gm-Message-State: AGi0PuYlYTC6R4xd8jt49jn7FeB8c3TaxsFiS5fOBOtSCA6iJKlo9S5L pPtEwzOJ9TweqBTsdUW+3gv7dYp7 X-Received: by 2002:a17:90a:24ea:: with SMTP id i97mr8149595pje.189.1587182819249; Fri, 17 Apr 2020 21:06:59 -0700 (PDT) Received: from localhost ([89.208.244.140]) by smtp.gmail.com with ESMTPSA id 13sm5903448pfv.95.2020.04.17.21.06.57 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Apr 2020 21:06:58 -0700 (PDT) Date: Sat, 18 Apr 2020 12:06:53 +0800 From: Dejin Zheng To: Andy Shevchenko Cc: Wolfram Sang , Michal Simek , Wolfram Sang , Pierre Yves MORDRET , Maxime Coquelin , Alexandre TORGUE , Alain Volmat , linux-i2c , Linux Kernel Mailing List Subject: Re: [PATCH v1] i2c: busses: convert to devm_platform_get_and_ioremap_resource Message-ID: <20200418040653.GA7120@nuc8i5> References: <20200414134827.18674-1-zhengdejin5@gmail.com> <20200415102158.GH1141@ninjato> <20200415160757.GC17519@nuc8i5> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 17, 2020 at 11:46:33PM +0300, Andy Shevchenko wrote: > On Thu, Apr 16, 2020 at 3:19 AM Dejin Zheng wrote: > > > > On Wed, Apr 15, 2020 at 12:21:58PM +0200, Wolfram Sang wrote: > > > On Tue, Apr 14, 2020 at 09:48:27PM +0800, Dejin Zheng wrote: > > > > use devm_platform_get_and_ioremap_resource() to simplify code, which > > > > contains platform_get_resource() and devm_ioremap_resource(), it also > > > > get the resource for use by the following code. > > > > > > > > Signed-off-by: Dejin Zheng > > > > > > Applied to for-next, because it seems 'the new way' but... > > > > > > > - r_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); > > > > - id->membase = devm_ioremap_resource(&pdev->dev, r_mem); > > > > + id->membase = devm_platform_get_and_ioremap_resource(pdev, 0, &r_mem); > > > > > > ... guys, do you really think this one line reduction improves > > > readability? Oh well... > > > > > Wolfram, Thank you for accepting it. From my personal point of view, > > as long as the direction is correct, even small improvements are > > worth doing. Thanks again for your tolerance. > > Do you have plans to move on from janitor work to something serious? > Andy, I want to do��but I don��t know where to start, Could you give me some suggestions? Thanks very much! BR, Dejin > -- > With Best Regards, > Andy Shevchenko