]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ACPI / video: Move ACPI_VIDEO_NOTIFY_* defines to acpi/video.h
authorHans de Goede <hdegoede@redhat.com>
Wed, 9 Nov 2016 17:15:56 +0000 (18:15 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 16 Nov 2016 22:07:43 +0000 (23:07 +0100)
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>
drivers/acpi/acpi_video.c
include/acpi/video.h

index c5557d070954c6a7bbf8799b0f2cc4ee593a14d4..201292e67ee8a130cf67bb4d10d81eac707716c4 100644 (file)
 
 #define ACPI_VIDEO_BUS_NAME            "Video Bus"
 #define ACPI_VIDEO_DEVICE_NAME         "Video Device"
-#define ACPI_VIDEO_NOTIFY_SWITCH       0x80
-#define ACPI_VIDEO_NOTIFY_PROBE                0x81
-#define ACPI_VIDEO_NOTIFY_CYCLE                0x82
-#define ACPI_VIDEO_NOTIFY_NEXT_OUTPUT  0x83
-#define ACPI_VIDEO_NOTIFY_PREV_OUTPUT  0x84
-
-#define ACPI_VIDEO_NOTIFY_CYCLE_BRIGHTNESS     0x85
-#define        ACPI_VIDEO_NOTIFY_INC_BRIGHTNESS        0x86
-#define ACPI_VIDEO_NOTIFY_DEC_BRIGHTNESS       0x87
-#define ACPI_VIDEO_NOTIFY_ZERO_BRIGHTNESS      0x88
-#define ACPI_VIDEO_NOTIFY_DISPLAY_OFF          0x89
 
 #define MAX_NAME_LEN   20
 
index 4536bd345ab462db5137be14a06d776cd5f6f85c..bfe484da55d2c98506106321501fa74a7551ecd1 100644 (file)
@@ -30,6 +30,17 @@ struct acpi_device;
 #define ACPI_VIDEO_DISPLAY_LEGACY_PANEL   0x0110
 #define ACPI_VIDEO_DISPLAY_LEGACY_TV      0x0200
 
+#define ACPI_VIDEO_NOTIFY_SWITCH               0x80
+#define ACPI_VIDEO_NOTIFY_PROBE                        0x81
+#define ACPI_VIDEO_NOTIFY_CYCLE                        0x82
+#define ACPI_VIDEO_NOTIFY_NEXT_OUTPUT          0x83
+#define ACPI_VIDEO_NOTIFY_PREV_OUTPUT          0x84
+#define ACPI_VIDEO_NOTIFY_CYCLE_BRIGHTNESS     0x85
+#define ACPI_VIDEO_NOTIFY_INC_BRIGHTNESS       0x86
+#define ACPI_VIDEO_NOTIFY_DEC_BRIGHTNESS       0x87
+#define ACPI_VIDEO_NOTIFY_ZERO_BRIGHTNESS      0x88
+#define ACPI_VIDEO_NOTIFY_DISPLAY_OFF          0x89
+
 enum acpi_backlight_type {
        acpi_backlight_undef = -1,
        acpi_backlight_none = 0,