]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm: Move port definition back to i915 header
authorRamalingam C <ramalingam.c@intel.com>
Wed, 28 Aug 2019 16:42:12 +0000 (22:12 +0530)
committerUma Shankar <uma.shankar@intel.com>
Fri, 30 Aug 2019 08:38:26 +0000 (14:08 +0530)
We dont need the definition of the enum port outside I915, anymore.
Hence move enum port definition into I915 driver itself.

v2:
  intel_display.h is included in intel_hdcp.h
v3:
  enum port is declared in headers.
v4:
  commit msg is rephrased.
v5:
  copyright year is updated [Tomas]

Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Shashank Sharma <shashank.sharma@intel.com>
Reviewed-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190828164216.405-3-ramalingam.c@intel.com
drivers/gpu/drm/i915/display/intel_bios.h
drivers/gpu/drm/i915/display/intel_display.h
drivers/gpu/drm/i915/display/intel_dp.h
drivers/gpu/drm/i915/display/intel_hdcp.h
drivers/gpu/drm/i915/display/intel_hdmi.h
drivers/gpu/drm/i915/display/intel_hotplug.h
drivers/gpu/drm/i915/display/intel_sdvo.h
include/drm/i915_drm.h

index 4969189e620f5e1ea763efba7884f5a1acd3751e..98f064828a576e3736bcd71fb9d0eaa385006d97 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2016 Intel Corporation
+ * Copyright © 2016-2019 Intel Corporation
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -35,6 +35,7 @@
 #include <drm/i915_drm.h>
 
 struct drm_i915_private;
+enum port;
 
 enum intel_backlight_type {
        INTEL_BACKLIGHT_PMIC,
index 03321fb4a7038edf1335a2131013657f61ff32ab..33fd523c4622bc12a7be70f9c1bd7249272c6e23 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2006-2017 Intel Corporation
+ * Copyright © 2006-2019 Intel Corporation
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -182,6 +182,24 @@ enum plane_id {
        for ((__p) = PLANE_PRIMARY; (__p) < I915_MAX_PLANES; (__p)++) \
                for_each_if((__crtc)->plane_ids_mask & BIT(__p))
 
+enum port {
+       PORT_NONE = -1,
+
+       PORT_A = 0,
+       PORT_B,
+       PORT_C,
+       PORT_D,
+       PORT_E,
+       PORT_F,
+       PORT_G,
+       PORT_H,
+       PORT_I,
+
+       I915_MAX_PORTS
+};
+
+#define port_name(p) ((p) + 'A')
+
 /*
  * Ports identifier referenced from other drivers.
  * Expected to remain stable over time
index 657bbb1f5ed08f01fea73b3e93d86b2165dc8237..e01d1f89409da99374480cb49b9a9a198f9046b8 100644 (file)
@@ -13,6 +13,7 @@
 #include "i915_reg.h"
 
 enum pipe;
+enum port;
 struct drm_connector_state;
 struct drm_encoder;
 struct drm_i915_private;
index 13555b054930a9d9b791372b5fdea85f1f54b376..59a2b40405cc15413bb1545a26430becd5045635 100644 (file)
@@ -15,6 +15,7 @@ struct drm_connector_state;
 struct drm_i915_private;
 struct intel_connector;
 struct intel_hdcp_shim;
+enum port;
 
 void intel_hdcp_atomic_check(struct drm_connector *connector,
                             struct drm_connector_state *old_state,
index 106c2e0bc3c9fb9b6117f0a176d8f8eca6b833b1..cf1ea54276391e4dfdf13151b3ea5fcfcf84bf3a 100644 (file)
@@ -23,6 +23,7 @@ struct intel_crtc_state;
 struct intel_hdmi;
 struct drm_connector_state;
 union hdmi_infoframe;
+enum port;
 
 void intel_hdmi_init(struct drm_i915_private *dev_priv, i915_reg_t hdmi_reg,
                     enum port port);
index b0cd447b7fbc376fc2091ee9484baa17d7bc32d4..087b5f57b32188a9b7e78ff99d424223dc3ebbc9 100644 (file)
@@ -13,6 +13,7 @@
 struct drm_i915_private;
 struct intel_connector;
 struct intel_encoder;
+enum port;
 
 void intel_hpd_poll_init(struct drm_i915_private *dev_priv);
 enum intel_hotplug_state intel_encoder_hotplug(struct intel_encoder *encoder,
index c9e05bcdd14124cadcd58eb7f99261c45e35ba89..a66f224aa17d391d31d728b6190109924d41a9c3 100644 (file)
@@ -14,6 +14,7 @@
 
 struct drm_i915_private;
 enum pipe;
+enum port;
 
 bool intel_sdvo_port_enabled(struct drm_i915_private *dev_priv,
                             i915_reg_t sdvo_reg, enum pipe *pipe);
index 23274cf927127c39cc725abbb8192cf89789e6dc..6722005884db0f81af26953c60d4bb73e89be3c2 100644 (file)
@@ -100,22 +100,4 @@ extern struct resource intel_graphics_stolen_res;
 #define INTEL_GEN11_BSM_DW1    0xc4
 #define   INTEL_BSM_MASK       (-(1u << 20))
 
-enum port {
-       PORT_NONE = -1,
-
-       PORT_A = 0,
-       PORT_B,
-       PORT_C,
-       PORT_D,
-       PORT_E,
-       PORT_F,
-       PORT_G,
-       PORT_H,
-       PORT_I,
-
-       I915_MAX_PORTS
-};
-
-#define port_name(p) ((p) + 'A')
-
 #endif                         /* _I915_DRM_H_ */