Re: [PATCH v2 14/24] platform/x86: ideapad-laptop: check for Fn-lock support in HALS

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

 



On Wed, Jan 13, 2021 at 8:23 PM Barnabás Pőcze <pobrn@xxxxxxxxxxxxxx> wrote:
>
> Bit 9 in the return value of the HALS ACPI method is set if
> Fn-lock is supported. Change ideapad_check_features() to check it.

...

> +               if (!eval_hals(handle, &val))
> +                       if (test_bit(HALS_FNLOCK_SUPPORT_BIT, &val))
> +                               priv->features.fn_lock = true;

if (a) { if (b) { ... } } == if (a && b) { ... }

-- 
With Best Regards,
Andy Shevchenko




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

  Powered by Linux