Re: [PATCH v6 4/5] device property: Constify fwnode_handle_get()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Apr 9, 2022 at 2:35 AM Sakari Ailus
<sakari.ailus@xxxxxxxxxxxxxxx> wrote:
> On Fri, Apr 08, 2022 at 09:48:43PM +0300, Andy Shevchenko wrote:
> > As to_of_node() suggests and the way the code in the OF and software node
> > back ends actually uses the fwnode handle, it may be constified. Do this
> > for good.
>
> How?
>
> If the fwnode is const, then the struct it contains must be presumed to be
> const, too.

Why? The idea is that we are not updating the fwnode, but the container.
The container may or may not be const. It's orthogonal, no?

-- 
With Best Regards,
Andy Shevchenko



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux