Re: [PATCH v10 10/14] platform/x86: Add alienware-wmi.h

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

 



On Tue, 11 Feb 2025, Andy Shevchenko wrote:

> On Fri, Feb 07, 2025 at 10:46:06AM -0500, Kurt Borja wrote:
> > Add a header file for alienware-wmi with shared resources to support the
> > upcoming file split.
> 
> ...
> 
> >  static const struct attribute_group *alienfx_groups[] = {
> >  	&zone_attribute_group,
> > -	&hdmi_attribute_group,
> > -	&amplifier_attribute_group,
> > -	&deepsleep_attribute_group,
> > +	WMAX_DEV_GROUPS
> >  	NULL
> 
> I don't like this change as it makes code harder to understand (at one glance
> you can't answer the question "what are the groups that being listed here?".

Over having #ifdeffery here, I've no problem whatsoever with it (and in 
fact I suggested goingthis way). It's pretty much boilerplate anyway 
having to list them yet in another place.

-- 
 i.





[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux