platform/x86: apple-gmux: Move port defines to apple-gmux.h
authorHans de Goede <hdegoede@redhat.com>
Tue, 24 Jan 2023 10:57:52 +0000 (11:57 +0100)
committerHans de Goede <hdegoede@redhat.com>
Tue, 24 Jan 2023 12:41:57 +0000 (13:41 +0100)
commit39f5a81f7ad80eb3fbcbfd817c6552db9de5504d
treeba639b97824e77ef8adac3c2abfe6d88cf28d53b
parentce95010ef62d4bf470928969bafc9070ae98cbb1
platform/x86: apple-gmux: Move port defines to apple-gmux.h

This is a preparation patch for adding a new static inline
apple_gmux_detect() helper which actually checks a supported
gmux is present, rather then only checking an ACPI device with
the HID is there as apple_gmux_present() does.

Fixes: 21245df307cb ("ACPI: video: Add Apple GMUX brightness control detection")
Link: https://lore.kernel.org/platform-driver-x86/20230123113750.462144-1-hdegoede@redhat.com/
Reported-by: Emmanouil Kouroupakis <kartebi@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230124105754.62167-2-hdegoede@redhat.com
drivers/platform/x86/apple-gmux.c
include/linux/apple-gmux.h