]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit67bca208a75a83e23b9e4a07e8f6bd755e3660e7
treeb9b13f840b45c4af8224be9d71b4725fb75b0f1d
parentf1716022ed5863e423f6f1af5f17194ab134a30c
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: 5e21c1bca3e8 ("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