[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c0a40afb-aff9-f68d-c9e5-179b90a61434@linux.intel.com>
Date: Wed, 3 Sep 2025 15:19:23 +0300 (EEST)
From: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
cc: LKML <linux-kernel@...r.kernel.org>, Peter Tyser <ptyser@...-inc.com>,
Lee Jones <lee@...nel.org>
Subject: Re: [PATCH v1 2/2] mfd: lpc_ich: Convert to use resource_rebase()
On Wed, 3 Sep 2025, Andy Shevchenko wrote:
> On Wed, Sep 03, 2025 at 10:12:29AM +0200, Andy Shevchenko wrote:
> > Simplify the resource handling by converting to use resource_rebase().
> > No functional change intended.
>
> ...
>
> > for (i = 0; i < info->nr_resources; i++) {
> > struct resource *mem = info->resources[i];
> > - resource_size_t offset = info->offsets[i];
> >
> > - /* Fill MEM resource */
> > - mem->start = base.start + offset;
> > - mem->end = base.start + offset + INTEL_GPIO_RESOURCE_SIZE - 1;
> > - mem->flags = base.flags;
> > + /* Rebase MEM resource */
> > + resource_rebase(mem, base.start);
> > }
>
> We may gain 3 LoC more by dropping temporary variable.
Yeah, drop that super-obvious comment as well. :-)
> But I will wait for the reviews in general before mocking up v2 of this.
>
>
--
i.
Powered by blists - more mailing lists