All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: jani.nikula@intel.com
Subject: [PATCH 2/7] drm/i915/hdmi: switch to kernel unsigned int types
Date: Tue, 12 Jun 2018 12:19:30 +0300	[thread overview]
Message-ID: <d8b79de3d52e1fcaeabf3abfbb2ed99c4397ff2b.1528794959.git.jani.nikula@intel.com> (raw)
In-Reply-To: <cover.1528794959.git.jani.nikula@intel.com>
In-Reply-To: <cover.1528794959.git.jani.nikula@intel.com>

We have fairly mixed uintN_t vs. uN usage throughout the driver, but try
to stick to kernel types at least where it's more prevalent.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 drivers/gpu/drm/i915/intel_hdmi.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
index 0ca4cc877520..6e3c4e27c65a 100644
--- a/drivers/gpu/drm/i915/intel_hdmi.c
+++ b/drivers/gpu/drm/i915/intel_hdmi.c
@@ -51,7 +51,7 @@ assert_hdmi_port_disabled(struct intel_hdmi *intel_hdmi)
 {
 	struct drm_device *dev = intel_hdmi_to_dev(intel_hdmi);
 	struct drm_i915_private *dev_priv = to_i915(dev);
-	uint32_t enabled_bits;
+	u32 enabled_bits;
 
 	enabled_bits = HAS_DDI(dev_priv) ? DDI_BUF_CTL_ENABLE : SDVO_ENABLE;
 
@@ -144,7 +144,7 @@ static void g4x_write_infoframe(struct drm_encoder *encoder,
 				unsigned int type,
 				const void *frame, ssize_t len)
 {
-	const uint32_t *data = frame;
+	const u32 *data = frame;
 	struct drm_device *dev = encoder->dev;
 	struct drm_i915_private *dev_priv = to_i915(dev);
 	u32 val = I915_READ(VIDEO_DIP_CTL);
@@ -199,7 +199,7 @@ static void ibx_write_infoframe(struct drm_encoder *encoder,
 				unsigned int type,
 				const void *frame, ssize_t len)
 {
-	const uint32_t *data = frame;
+	const u32 *data = frame;
 	struct drm_device *dev = encoder->dev;
 	struct drm_i915_private *dev_priv = to_i915(dev);
 	struct intel_crtc *intel_crtc = to_intel_crtc(crtc_state->base.crtc);
@@ -259,7 +259,7 @@ static void cpt_write_infoframe(struct drm_encoder *encoder,
 				unsigned int type,
 				const void *frame, ssize_t len)
 {
-	const uint32_t *data = frame;
+	const u32 *data = frame;
 	struct drm_device *dev = encoder->dev;
 	struct drm_i915_private *dev_priv = to_i915(dev);
 	struct intel_crtc *intel_crtc = to_intel_crtc(crtc_state->base.crtc);
@@ -317,7 +317,7 @@ static void vlv_write_infoframe(struct drm_encoder *encoder,
 				unsigned int type,
 				const void *frame, ssize_t len)
 {
-	const uint32_t *data = frame;
+	const u32 *data = frame;
 	struct drm_device *dev = encoder->dev;
 	struct drm_i915_private *dev_priv = to_i915(dev);
 	struct intel_crtc *intel_crtc = to_intel_crtc(crtc_state->base.crtc);
@@ -376,7 +376,7 @@ static void hsw_write_infoframe(struct drm_encoder *encoder,
 				unsigned int type,
 				const void *frame, ssize_t len)
 {
-	const uint32_t *data = frame;
+	const u32 *data = frame;
 	struct drm_device *dev = encoder->dev;
 	struct drm_i915_private *dev_priv = to_i915(dev);
 	enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;
@@ -442,7 +442,7 @@ static void intel_write_infoframe(struct drm_encoder *encoder,
 				  union hdmi_infoframe *frame)
 {
 	struct intel_digital_port *intel_dig_port = enc_to_dig_port(encoder);
-	uint8_t buffer[VIDEO_DIP_DATA_SIZE];
+	u8 buffer[VIDEO_DIP_DATA_SIZE];
 	ssize_t len;
 
 	/* see comment above for the reason for this offset */
-- 
2.11.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2018-06-12  9:19 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-12  9:19 [PATCH 0/7] drm/i915: move towards kernel types Jani Nikula
2018-06-12  9:19 ` [PATCH 1/7] drm/i915/vbt: switch to kernel unsigned int types Jani Nikula
2018-06-12  9:19 ` Jani Nikula [this message]
2018-06-12  9:19 ` [PATCH 3/7] drm/i915/uncore: " Jani Nikula
2018-06-12  9:19 ` [PATCH 4/7] drm/i915/dvo: " Jani Nikula
2018-06-12  9:56   ` [PATCH v2 " Jani Nikula
2018-06-12  9:19 ` [PATCH 5/7] drm/i915/backlight: " Jani Nikula
2018-06-12  9:19 ` [PATCH 6/7] drm/i915/audio: " Jani Nikula
2018-06-12 13:13   ` Ville Syrjälä
2018-06-12  9:19 ` [PATCH 7/7] drm/i915/lspcon: " Jani Nikula
2018-06-12  9:33 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915: move towards kernel types Patchwork
2018-06-12  9:35 ` ✗ Fi.CI.SPARSE: " Patchwork
2018-06-12  9:49 ` ✓ Fi.CI.BAT: success " Patchwork
2018-06-12  9:59 ` [PATCH 0/7] " Tvrtko Ursulin
2018-06-12 10:09   ` Jani Nikula
2018-06-12 23:28     ` Lucas De Marchi
2018-06-13  6:55       ` Jani Nikula
2018-06-14 18:54         ` Rodrigo Vivi
2018-06-15  9:08           ` Jani Nikula
2018-06-18  8:39             ` Joonas Lahtinen
2018-06-18 11:53               ` Jani Nikula
2018-06-19  6:55             ` Lucas De Marchi
2018-06-12 10:14 ` ✗ Fi.CI.SPARSE: warning for drm/i915: move towards kernel types (rev2) Patchwork
2018-06-12 10:29 ` ✓ Fi.CI.BAT: success " Patchwork
2018-06-12 12:23 ` ✓ Fi.CI.IGT: " Patchwork
2018-06-12 13:17 ` [PATCH 0/7] drm/i915: move towards kernel types Ville Syrjälä

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d8b79de3d52e1fcaeabf3abfbb2ed99c4397ff2b.1528794959.git.jani.nikula@intel.com \
    --to=jani.nikula@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.