From: Dejin Zheng <zhengdejin5@gmail.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Wolfram Sang <wsa@the-dreams.de>,
Michal Simek <michal.simek@xilinx.com>,
Wolfram Sang <wsa+renesas@sang-engineering.com>,
Pierre Yves MORDRET <pierre-yves.mordret@st.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre TORGUE <alexandre.torgue@st.com>,
Alain Volmat <alain.volmat@st.com>,
linux-i2c <linux-i2c@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v1] i2c: busses: convert to devm_platform_get_and_ioremap_resource
Date: Sat, 18 Apr 2020 12:06:53 +0800 [thread overview]
Message-ID: <20200418040653.GA7120@nuc8i5> (raw)
In-Reply-To: <CAHp75Vc+a7sQeY+W+4+-75TCMDCpnPRjUA5T8ZsBZi52PVB9dw@mail.gmail.com>
On Fri, Apr 17, 2020 at 11:46:33PM +0300, Andy Shevchenko wrote:
> On Thu, Apr 16, 2020 at 3:19 AM Dejin Zheng <zhengdejin5@gmail.com> 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 <zhengdejin5@gmail.com>
> > >
> > > 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
next prev parent reply other threads:[~2020-04-18 4:09 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-14 13:48 [PATCH v1] i2c: busses: convert to devm_platform_get_and_ioremap_resource Dejin Zheng
2020-04-15 10:21 ` Wolfram Sang
2020-04-15 16:07 ` Dejin Zheng
2020-04-17 20:46 ` Andy Shevchenko
2020-04-18 4:06 ` Dejin Zheng [this message]
2020-04-18 13:00 ` Andy Shevchenko
2020-04-18 17:05 ` Dejin Zheng
2020-04-19 16:36 ` Dejin Zheng
2020-04-20 9:43 ` Wolfram Sang
2020-04-20 9:47 ` Andy Shevchenko
2020-04-20 9:47 ` Andy Shevchenko
2020-04-20 9:57 ` Wolfram Sang
2020-04-20 9:57 ` Wolfram Sang
2020-04-20 14:36 ` Dejin Zheng
2020-04-21 1:24 ` [LKP] " Philip Li
2020-04-21 1:24 ` Philip Li
-- strict thread matches above, loose matches on Subject: below --
2020-04-17 20:36 Markus Elfring
2020-04-17 20:36 ` Markus Elfring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200418040653.GA7120@nuc8i5 \
--to=zhengdejin5@gmail.com \
--cc=alain.volmat@st.com \
--cc=alexandre.torgue@st.com \
--cc=andy.shevchenko@gmail.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mcoquelin.stm32@gmail.com \
--cc=michal.simek@xilinx.com \
--cc=pierre-yves.mordret@st.com \
--cc=wsa+renesas@sang-engineering.com \
--cc=wsa@the-dreams.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.