Re: [PATCH 02/14] platform/x86: add backend for macsmc in intel macs
From: Andy Shevchenko
Date: Fri Dec 04 2026 - 12:23:51 EST
On Fri, Dec 04, 2026 at 08:22:52PM +0530, Aditya Garg wrote:
> On 04-Dec-26 07:49 PM, Andy Shevchenko wrote:
> > On Fri, Dec 04, 2026 at 08:12:42AM -0500, Atharva Tiwari wrote:
...
> >> +static const struct acpi_device_id apple_smc_acpi_ids[] = {
> >> + {"APP0001", 0},
> >> + {}
> >> +};
> >
> > Where have you been last half a year?
>
> He is a new kernel dev. Not your fault for assuming he is a seasoned one.
Oh, sorry for that. Do you have any internal mailing list to discuss patches
before sending, or is it just this mailing list for the fully open discussion?
> Can the maintainers be friendly and point out code errors rather than the
> RTFM thing for LKML as well? Or atleast point out some examples rather than
> just ranting.
Sure. The C99 initialisers is a requirement nowadays for the ID tables.
As well as common style. I highly recommend to check with Git history
for each of the subsystem and check the last contributions. AI actually
may be helpful with collecting and summarising such an info.
The above should be
static const struct acpi_device_id apple_smc_acpi_ids[] = {
{ .id = "APP0001" },
{ }
};
P.S. Sorry for my tone, I'm so grumpy on the later AI slop here and there,
especially when people do not read anything.
--
With Best Regards,
Andy Shevchenko