platform/x86: asus-wmi: cleanup main struct to avoid some holes
authorLuke D. Jones <luke@ljones.dev>
Thu, 4 Apr 2024 00:16:52 +0000 (13:16 +1300)
committerHans de Goede <hdegoede@redhat.com>
Mon, 8 Apr 2024 16:30:27 +0000 (18:30 +0200)
commit88c0ef69dd881d8acceb62c48b66674367c962b7
tree95f5a9946c0ee411a98fb97f40ce286dfe8e3b5e
parenta94e8a56f9e1258d2f4ce613976207d0c02eb181
platform/x86: asus-wmi: cleanup main struct to avoid some holes

Reorganises some attr-available calls to remove a few unrequired
booleans in the main driver struct which combined with some
reorganisation prevents a series of large holes seen with pahole.

Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Luke D. Jones <luke@ljones.dev>
Link: https://lore.kernel.org/r/20240404001652.86207-10-luke@ljones.dev
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/asus-wmi.c