platform/x86: huawei-wmi: remove unnecessary member
authorBarnabás Pőcze <pobrn@protonmail.com>
Wed, 5 Oct 2022 15:00:51 +0000 (15:00 +0000)
committerHans de Goede <hdegoede@redhat.com>
Wed, 16 Nov 2022 07:48:19 +0000 (08:48 +0100)
commite57d58ee1868b1ad3e8040335a2941506feb52e4
tree3cbe2529c2f836ad99dd9867be70edb14ebabf5b
parent0b9a1dcdb6a2c841899389bf2dd7a3e0e2aa0e99
platform/x86: huawei-wmi: remove unnecessary member

The `huawei_wmi::idev` array is not actually used by the driver,
so remove it. The piece of code that - I believe - was supposed
to fill the array is flawed, it did not actually set any of the
values inside the array. This was most likely masked by the fact
that the input devices are devm managed and that the only function
that needs a reference to the input devices is
`huawei_wmi_input_notify()`, however, that does not access the
appropriate input device via the `huawei_wmi` object.

Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Link: https://lore.kernel.org/r/20221005150032.173198-3-pobrn@protonmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/huawei-wmi.c