Re: [PATCH v1 1/1] HID: i2c-hid: acpi: Get ACPI companion only once and reuse it

From: Andy Shevchenko
Date: Fri Feb 26 2021 - 13:46:07 EST


On Fri, Feb 26, 2021 at 8:44 PM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
>
> Currently the ACPI companion and handle are retrieved and checked
> a few times in different functions. Instead get ACPI companion only
> once and reuse it everywhere.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> ---
>
> It depends on previously sent patch that moves GUID out of the function.
> If needed I can resend all of them as a series.

Oh, I see more improvements can be done, so, I will send this and the
rest as v2 altogether.


--
With Best Regards,
Andy Shevchenko