[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b925c84615d3edadb1a9c351dd93f84e6e0dce94.camel@irl.hu>
Date: Mon, 08 Apr 2024 22:13:01 +0200
From: Gergo Koteles <soyer@....hu>
To: Hans de Goede <hdegoede@...hat.com>,
"Rafael J. Wysocki" <rafael@...nel.org>, Len Brown <lenb@...nel.org>,
Ike Panhc <ike.pan@...onical.com>,
Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
Henrique de Moraes Holschuh <hmh@....eng.br>,
Daniel Lezcano <daniel.lezcano@...aro.org>,
Barnabás Pőcze <pobrn@...tonmail.com>
Cc: linux-acpi@...r.kernel.org, ibm-acpi-devel@...ts.sourceforge.net,
platform-driver-x86@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v5 1/3] ACPI: platform-profile: add
platform_profile_cycle()
Hi Hans,
On Mon, 2024-04-08 at 18:41 +0200, Hans de Goede wrote:
> > + next = find_next_bit_wrap(cur_profile->choices,
> > + ARRAY_SIZE(profile_names), profile + 1);
> > +
> > + if (WARN_ON(next == ARRAY_SIZE(profile_names))) {
>
> Other code in drivers/acpi/platform_profile.c uses PLATFORM_PROFILE_LAST
> instead of ARRAY_SIZE(profile_names) (these are guaranteed to be equal)
> please switch to using PLATFORM_PROFILE_LAST for consistency.
>
Thanks for the review. I changed these in v6.
Best regards,
Gergo
Powered by blists - more mailing lists