diff options
author | Hans de Goede <hdegoede@redhat.com> | 2016-11-09 12:15:56 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-11-16 17:07:43 -0500 |
commit | eff4a751cce523e17f3ea70328782539243e650a (patch) | |
tree | 092c602ef0d6cc58cc3a12669648702cbc24aacd | |
parent | a25f0944ba9b1d8a6813fd6f1a86f1bd59ac25a6 (diff) |
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>
-rw-r--r-- | drivers/acpi/acpi_video.c | 11 | ||||
-rw-r--r-- | include/acpi/video.h | 11 |
2 files changed, 11 insertions, 11 deletions
diff --git a/drivers/acpi/acpi_video.c b/drivers/acpi/acpi_video.c index c5557d070954..201292e67ee8 100644 --- a/drivers/acpi/acpi_video.c +++ b/drivers/acpi/acpi_video.c | |||
@@ -43,17 +43,6 @@ | |||
43 | 43 | ||
44 | #define ACPI_VIDEO_BUS_NAME "Video Bus" | 44 | #define ACPI_VIDEO_BUS_NAME "Video Bus" |
45 | #define ACPI_VIDEO_DEVICE_NAME "Video Device" | 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 | #define MAX_NAME_LEN 20 | 47 | #define MAX_NAME_LEN 20 |
59 | 48 | ||
diff --git a/include/acpi/video.h b/include/acpi/video.h index 4536bd345ab4..bfe484da55d2 100644 --- a/include/acpi/video.h +++ b/include/acpi/video.h | |||
@@ -30,6 +30,17 @@ struct acpi_device; | |||
30 | #define ACPI_VIDEO_DISPLAY_LEGACY_PANEL 0x0110 | 30 | #define ACPI_VIDEO_DISPLAY_LEGACY_PANEL 0x0110 |
31 | #define ACPI_VIDEO_DISPLAY_LEGACY_TV 0x0200 | 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 | enum acpi_backlight_type { | 44 | enum acpi_backlight_type { |
34 | acpi_backlight_undef = -1, | 45 | acpi_backlight_undef = -1, |
35 | acpi_backlight_none = 0, | 46 | acpi_backlight_none = 0, |