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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:34:46 +0000 (08:34 +0100)
commit4e1f8efbd71916e8bff19ed0bf9eca7548d696f4
treeb9b13f840b45c4af8224be9d71b4725fb75b0f1d
parent8f7f8079ed93cf9dd7df18fb5657dbc29a3e32ae
platform/x86: apple-gmux: Move port defines to apple-gmux.h

[ Upstream commit 39f5a81f7ad80eb3fbcbfd817c6552db9de5504d ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/apple-gmux.c
include/linux/apple-gmux.h