drm/i915/uncore: switch to kernel unsigned int types
authorJani Nikula <jani.nikula@intel.com>
Tue, 12 Jun 2018 09:19:31 +0000 (12:19 +0300)
committerJani Nikula <jani.nikula@intel.com>
Mon, 18 Jun 2018 11:45:51 +0000 (14:45 +0300)
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.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/4af5f30fc9665d1bed1eed09e7f749737749d739.1528794959.git.jani.nikula@intel.com
drivers/gpu/drm/i915/intel_uncore.h

index 47478d6096308f4d60877f2173685b623fa4ae3d..2fbe93178fb2a3bb8eace212b040cb31dbc379cb 100644 (file)
@@ -67,21 +67,21 @@ struct intel_uncore_funcs {
        void (*force_wake_put)(struct drm_i915_private *dev_priv,
                               enum forcewake_domains domains);
 
-       uint8_t  (*mmio_readb)(struct drm_i915_private *dev_priv,
-                              i915_reg_t r, bool trace);
-       uint16_t (*mmio_readw)(struct drm_i915_private *dev_priv,
-                              i915_reg_t r, bool trace);
-       uint32_t (*mmio_readl)(struct drm_i915_private *dev_priv,
-                              i915_reg_t r, bool trace);
-       uint64_t (*mmio_readq)(struct drm_i915_private *dev_priv,
-                              i915_reg_t r, bool trace);
+       u8 (*mmio_readb)(struct drm_i915_private *dev_priv,
+                        i915_reg_t r, bool trace);
+       u16 (*mmio_readw)(struct drm_i915_private *dev_priv,
+                         i915_reg_t r, bool trace);
+       u32 (*mmio_readl)(struct drm_i915_private *dev_priv,
+                         i915_reg_t r, bool trace);
+       u64 (*mmio_readq)(struct drm_i915_private *dev_priv,
+                         i915_reg_t r, bool trace);
 
        void (*mmio_writeb)(struct drm_i915_private *dev_priv,
-                           i915_reg_t r, uint8_t val, bool trace);
+                           i915_reg_t r, u8 val, bool trace);
        void (*mmio_writew)(struct drm_i915_private *dev_priv,
-                           i915_reg_t r, uint16_t val, bool trace);
+                           i915_reg_t r, u16 val, bool trace);
        void (*mmio_writel)(struct drm_i915_private *dev_priv,
-                           i915_reg_t r, uint32_t val, bool trace);
+                           i915_reg_t r, u32 val, bool trace);
 };
 
 struct intel_forcewake_range {