platform/x86: apple-gmux: refactor gmux types
authorOrlando Chamberlain <orlandoch.dev@gmail.com>
Fri, 3 Mar 2023 11:28:41 +0000 (22:28 +1100)
committerHans de Goede <hdegoede@redhat.com>
Thu, 16 Mar 2023 10:02:00 +0000 (11:02 +0100)
commit96ec2d9868c4afd3cea17f4ee18b84ccc1cde20f
tree0f105e09ab0416e161c7256c5a9954d133ec97ba
parent90caf1dfe9efb727874bcafd30fefb0807cb7670
platform/x86: apple-gmux: refactor gmux types

Add apple_gmux_config struct containing operations and data specific to
each mux type.

This is in preparation for adding a third, MMIO based, gmux type.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Orlando Chamberlain <orlandoch.dev@gmail.com>
Link: https://lore.kernel.org/r/20230303112842.3094-3-orlandoch.dev@gmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/apple-gmux.c
include/linux/apple-gmux.h