Re: [PATCH] platform/x86: intel-vbtn: Remove unused KEYMAP_LEN define

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

 



On Thu, Mar 25, 2021 at 2:34 PM Hans de Goede <hdegoede@xxxxxxxxxx> wrote:
>
> Now that we have 2 separate input_dev-s for the buttons and thw switches,
> this is no longer used, remove it.

Reviewed-by: Andy Shevchenko <andy.shevchenko@xxxxxxxxx>

> Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
> ---
>  drivers/platform/x86/intel-vbtn.c | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/drivers/platform/x86/intel-vbtn.c b/drivers/platform/x86/intel-vbtn.c
> index 3fdf4cbec9ad..888a764efad1 100644
> --- a/drivers/platform/x86/intel-vbtn.c
> +++ b/drivers/platform/x86/intel-vbtn.c
> @@ -63,9 +63,6 @@ static const struct key_entry intel_vbtn_switchmap[] = {
>         { KE_END }
>  };
>
> -#define KEYMAP_LEN \
> -       (ARRAY_SIZE(intel_vbtn_keymap) + ARRAY_SIZE(intel_vbtn_switchmap) + 1)
> -
>  struct intel_vbtn_priv {
>         struct input_dev *buttons_dev;
>         struct input_dev *switches_dev;
> --
> 2.30.2
>


-- 
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