lkml.org 
[lkml]   [2022]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 1/5] device property: Keep dev_fwnode() and dev_fwnode_const() separate
Hi Andy, Greg,

On Tue, Oct 04, 2022 at 11:14:14AM +0300, Andy Shevchenko wrote:
> On Tue, Oct 04, 2022 at 09:55:21AM +0200, Greg Kroah-Hartman wrote:
> > On Mon, Oct 03, 2022 at 08:08:58PM +0000, Sakari Ailus wrote:
> > > On Mon, Oct 03, 2022 at 06:17:17PM +0200, Greg Kroah-Hartman wrote:
>
> ...
>
> > > #define kobj_to_dev(kobj) \
> > > (_Generic((kobj), \
> > > const struct kobject *: __kobj_to_dev_const, \
> > > struct kobject *: __kobj_to_dev)(kobj))
> >
> > Ah, doh! I had the (kobj) part in the wrong place, thanks for that
> > fix...
> >
> > Ok, this looks better, let me see how well the build breaks with some of
> > these changes
>
> I believe I can rewrite my patch like this and then it will be much nicer since
> we may constify all the rest without calling __dev_fwnode_const() directly.
>
> Are you agree?

Sounds good to me, thanks!

--
Sakari Ailus

\
 
 \ /
  Last update: 2022-10-04 11:29    [W:0.059 / U:2.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site