Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI / video: Move ACPI_VIDEO_NOTIFY_* defines to acpi/video.h

acpi_video.c passed the ACPI_VIDEO_NOTIFY_* defines as type code to
acpi_notifier_call_chain(). Move these defines to acpi/video.h so
that acpi_notifier listeners can check the type code using these
defines.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Hans de Goede and committed by
Rafael J. Wysocki
eff4a751 a25f0944

+11 -11
-11
drivers/acpi/acpi_video.c
··· 43 43 44 44 #define ACPI_VIDEO_BUS_NAME "Video Bus" 45 45 #define ACPI_VIDEO_DEVICE_NAME "Video Device" 46 - #define ACPI_VIDEO_NOTIFY_SWITCH 0x80 47 - #define ACPI_VIDEO_NOTIFY_PROBE 0x81 48 - #define ACPI_VIDEO_NOTIFY_CYCLE 0x82 49 - #define ACPI_VIDEO_NOTIFY_NEXT_OUTPUT 0x83 50 - #define ACPI_VIDEO_NOTIFY_PREV_OUTPUT 0x84 51 - 52 - #define ACPI_VIDEO_NOTIFY_CYCLE_BRIGHTNESS 0x85 53 - #define ACPI_VIDEO_NOTIFY_INC_BRIGHTNESS 0x86 54 - #define ACPI_VIDEO_NOTIFY_DEC_BRIGHTNESS 0x87 55 - #define ACPI_VIDEO_NOTIFY_ZERO_BRIGHTNESS 0x88 56 - #define ACPI_VIDEO_NOTIFY_DISPLAY_OFF 0x89 57 46 58 47 #define MAX_NAME_LEN 20 59 48
+11
include/acpi/video.h
··· 30 30 #define ACPI_VIDEO_DISPLAY_LEGACY_PANEL 0x0110 31 31 #define ACPI_VIDEO_DISPLAY_LEGACY_TV 0x0200 32 32 33 + #define ACPI_VIDEO_NOTIFY_SWITCH 0x80 34 + #define ACPI_VIDEO_NOTIFY_PROBE 0x81 35 + #define ACPI_VIDEO_NOTIFY_CYCLE 0x82 36 + #define ACPI_VIDEO_NOTIFY_NEXT_OUTPUT 0x83 37 + #define ACPI_VIDEO_NOTIFY_PREV_OUTPUT 0x84 38 + #define ACPI_VIDEO_NOTIFY_CYCLE_BRIGHTNESS 0x85 39 + #define ACPI_VIDEO_NOTIFY_INC_BRIGHTNESS 0x86 40 + #define ACPI_VIDEO_NOTIFY_DEC_BRIGHTNESS 0x87 41 + #define ACPI_VIDEO_NOTIFY_ZERO_BRIGHTNESS 0x88 42 + #define ACPI_VIDEO_NOTIFY_DISPLAY_OFF 0x89 43 + 33 44 enum acpi_backlight_type { 34 45 acpi_backlight_undef = -1, 35 46 acpi_backlight_none = 0,