diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-02-11 08:07:33 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2018-03-01 02:09:10 -0500 |
commit | dfe9cfccb264889b025e443ca20e2fbb401295c2 (patch) | |
tree | 8b42d748309d634b25e9310e36456799bf05ca76 /drivers/gpu/drm/omapdrm/omap_crtc.c | |
parent | f073d78eeb8efd85718e611c15f9a78647751dea (diff) |
drm: omapdrm: Use kernel integer types
The standard kernel integer types are [us]{8,16,32}. Use them instead of
the u?int{8,16,32}_t types.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_crtc.c')
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_crtc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_crtc.c b/drivers/gpu/drm/omapdrm/omap_crtc.c index 1b8154e58d18..95615a86e9f7 100644 --- a/drivers/gpu/drm/omapdrm/omap_crtc.c +++ b/drivers/gpu/drm/omapdrm/omap_crtc.c | |||
@@ -272,7 +272,7 @@ static const struct dss_mgr_ops mgr_ops = { | |||
272 | * Setup, Flush and Page Flip | 272 | * Setup, Flush and Page Flip |
273 | */ | 273 | */ |
274 | 274 | ||
275 | void omap_crtc_error_irq(struct drm_crtc *crtc, uint32_t irqstatus) | 275 | void omap_crtc_error_irq(struct drm_crtc *crtc, u32 irqstatus) |
276 | { | 276 | { |
277 | struct omap_crtc *omap_crtc = to_omap_crtc(crtc); | 277 | struct omap_crtc *omap_crtc = to_omap_crtc(crtc); |
278 | 278 | ||
@@ -492,7 +492,7 @@ static int omap_crtc_atomic_check(struct drm_crtc *crtc, | |||
492 | struct drm_plane_state *pri_state; | 492 | struct drm_plane_state *pri_state; |
493 | 493 | ||
494 | if (state->color_mgmt_changed && state->gamma_lut) { | 494 | if (state->color_mgmt_changed && state->gamma_lut) { |
495 | uint length = state->gamma_lut->length / | 495 | unsigned int length = state->gamma_lut->length / |
496 | sizeof(struct drm_color_lut); | 496 | sizeof(struct drm_color_lut); |
497 | 497 | ||
498 | if (length < 2) | 498 | if (length < 2) |
@@ -526,7 +526,7 @@ static void omap_crtc_atomic_flush(struct drm_crtc *crtc, | |||
526 | 526 | ||
527 | if (crtc->state->color_mgmt_changed) { | 527 | if (crtc->state->color_mgmt_changed) { |
528 | struct drm_color_lut *lut = NULL; | 528 | struct drm_color_lut *lut = NULL; |
529 | uint length = 0; | 529 | unsigned int length = 0; |
530 | 530 | ||
531 | if (crtc->state->gamma_lut) { | 531 | if (crtc->state->gamma_lut) { |
532 | lut = (struct drm_color_lut *) | 532 | lut = (struct drm_color_lut *) |
@@ -557,7 +557,7 @@ static void omap_crtc_atomic_flush(struct drm_crtc *crtc, | |||
557 | static int omap_crtc_atomic_set_property(struct drm_crtc *crtc, | 557 | static int omap_crtc_atomic_set_property(struct drm_crtc *crtc, |
558 | struct drm_crtc_state *state, | 558 | struct drm_crtc_state *state, |
559 | struct drm_property *property, | 559 | struct drm_property *property, |
560 | uint64_t val) | 560 | u64 val) |
561 | { | 561 | { |
562 | struct omap_drm_private *priv = crtc->dev->dev_private; | 562 | struct omap_drm_private *priv = crtc->dev->dev_private; |
563 | struct drm_plane_state *plane_state; | 563 | struct drm_plane_state *plane_state; |
@@ -585,7 +585,7 @@ static int omap_crtc_atomic_set_property(struct drm_crtc *crtc, | |||
585 | static int omap_crtc_atomic_get_property(struct drm_crtc *crtc, | 585 | static int omap_crtc_atomic_get_property(struct drm_crtc *crtc, |
586 | const struct drm_crtc_state *state, | 586 | const struct drm_crtc_state *state, |
587 | struct drm_property *property, | 587 | struct drm_property *property, |
588 | uint64_t *val) | 588 | u64 *val) |
589 | { | 589 | { |
590 | struct omap_drm_private *priv = crtc->dev->dev_private; | 590 | struct omap_drm_private *priv = crtc->dev->dev_private; |
591 | struct omap_crtc_state *omap_state = to_omap_crtc_state(state); | 591 | struct omap_crtc_state *omap_state = to_omap_crtc_state(state); |
@@ -732,7 +732,7 @@ struct drm_crtc *omap_crtc_init(struct drm_device *dev, | |||
732 | * gamma table is not supprted. | 732 | * gamma table is not supprted. |
733 | */ | 733 | */ |
734 | if (priv->dispc_ops->mgr_gamma_size(channel)) { | 734 | if (priv->dispc_ops->mgr_gamma_size(channel)) { |
735 | uint gamma_lut_size = 256; | 735 | unsigned int gamma_lut_size = 256; |
736 | 736 | ||
737 | drm_crtc_enable_color_mgmt(crtc, 0, false, gamma_lut_size); | 737 | drm_crtc_enable_color_mgmt(crtc, 0, false, gamma_lut_size); |
738 | drm_mode_crtc_set_gamma_size(crtc, gamma_lut_size); | 738 | drm_mode_crtc_set_gamma_size(crtc, gamma_lut_size); |