diff options
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/ast/ast_mode.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/cirrus/cirrus_mode.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_atomic_helper.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_color_mgmt.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_fb_helper.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/gma_display.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/gma_display.h | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/mgag200/mgag200_mode.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/dispnv04/crtc.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/nv50_display.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_display.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_crtc.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_kms.h | 3 | ||||
-rw-r--r-- | include/drm/drm_atomic_helper.h | 3 | ||||
-rw-r--r-- | include/drm/drm_crtc.h | 3 |
21 files changed, 43 insertions, 21 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c index f525ae4e0576..daf003dd2351 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | |||
@@ -2631,7 +2631,8 @@ static void dce_v10_0_cursor_reset(struct drm_crtc *crtc) | |||
2631 | } | 2631 | } |
2632 | 2632 | ||
2633 | static int dce_v10_0_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, | 2633 | static int dce_v10_0_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, |
2634 | u16 *blue, uint32_t size) | 2634 | u16 *blue, uint32_t size, |
2635 | struct drm_modeset_acquire_ctx *ctx) | ||
2635 | { | 2636 | { |
2636 | struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); | 2637 | struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); |
2637 | int i; | 2638 | int i; |
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c index 3eac27f24d94..3a7296724457 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | |||
@@ -2651,7 +2651,8 @@ static void dce_v11_0_cursor_reset(struct drm_crtc *crtc) | |||
2651 | } | 2651 | } |
2652 | 2652 | ||
2653 | static int dce_v11_0_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, | 2653 | static int dce_v11_0_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, |
2654 | u16 *blue, uint32_t size) | 2654 | u16 *blue, uint32_t size, |
2655 | struct drm_modeset_acquire_ctx *ctx) | ||
2655 | { | 2656 | { |
2656 | struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); | 2657 | struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); |
2657 | int i; | 2658 | int i; |
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v6_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v6_0.c index 838cf1a778f2..8ccada5d6f39 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v6_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | |||
@@ -1998,7 +1998,8 @@ static void dce_v6_0_cursor_reset(struct drm_crtc *crtc) | |||
1998 | } | 1998 | } |
1999 | 1999 | ||
2000 | static int dce_v6_0_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, | 2000 | static int dce_v6_0_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, |
2001 | u16 *blue, uint32_t size) | 2001 | u16 *blue, uint32_t size, |
2002 | struct drm_modeset_acquire_ctx *ctx) | ||
2002 | { | 2003 | { |
2003 | struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); | 2004 | struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); |
2004 | int i; | 2005 | int i; |
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c index 1b0717b11efe..6943f2641c90 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | |||
@@ -2482,7 +2482,8 @@ static void dce_v8_0_cursor_reset(struct drm_crtc *crtc) | |||
2482 | } | 2482 | } |
2483 | 2483 | ||
2484 | static int dce_v8_0_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, | 2484 | static int dce_v8_0_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, |
2485 | u16 *blue, uint32_t size) | 2485 | u16 *blue, uint32_t size, |
2486 | struct drm_modeset_acquire_ctx *ctx) | ||
2486 | { | 2487 | { |
2487 | struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); | 2488 | struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); |
2488 | int i; | 2489 | int i; |
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c index 5c51f9a97811..81a24b6b4846 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c | |||
@@ -165,7 +165,8 @@ static void dce_virtual_bandwidth_update(struct amdgpu_device *adev) | |||
165 | } | 165 | } |
166 | 166 | ||
167 | static int dce_virtual_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, | 167 | static int dce_virtual_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, |
168 | u16 *green, u16 *blue, uint32_t size) | 168 | u16 *green, u16 *blue, uint32_t size, |
169 | struct drm_modeset_acquire_ctx *ctx) | ||
169 | { | 170 | { |
170 | struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); | 171 | struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); |
171 | int i; | 172 | int i; |
diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c index 47b78e52691c..aaef0a652f10 100644 --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c | |||
@@ -645,7 +645,8 @@ static void ast_crtc_reset(struct drm_crtc *crtc) | |||
645 | } | 645 | } |
646 | 646 | ||
647 | static int ast_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, | 647 | static int ast_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, |
648 | u16 *blue, uint32_t size) | 648 | u16 *blue, uint32_t size, |
649 | struct drm_modeset_acquire_ctx *ctx) | ||
649 | { | 650 | { |
650 | struct ast_crtc *ast_crtc = to_ast_crtc(crtc); | 651 | struct ast_crtc *ast_crtc = to_ast_crtc(crtc); |
651 | int i; | 652 | int i; |
diff --git a/drivers/gpu/drm/cirrus/cirrus_mode.c b/drivers/gpu/drm/cirrus/cirrus_mode.c index ed43ab10ac99..53f6f0f84206 100644 --- a/drivers/gpu/drm/cirrus/cirrus_mode.c +++ b/drivers/gpu/drm/cirrus/cirrus_mode.c | |||
@@ -327,7 +327,8 @@ static void cirrus_crtc_commit(struct drm_crtc *crtc) | |||
327 | * but it's a requirement that we provide the function | 327 | * but it's a requirement that we provide the function |
328 | */ | 328 | */ |
329 | static int cirrus_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, | 329 | static int cirrus_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, |
330 | u16 *blue, uint32_t size) | 330 | u16 *blue, uint32_t size, |
331 | struct drm_modeset_acquire_ctx *ctx) | ||
331 | { | 332 | { |
332 | struct cirrus_crtc *cirrus_crtc = to_cirrus_crtc(crtc); | 333 | struct cirrus_crtc *cirrus_crtc = to_cirrus_crtc(crtc); |
333 | int i; | 334 | int i; |
diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c index 0a3d91c51d61..25569e5b3adc 100644 --- a/drivers/gpu/drm/drm_atomic_helper.c +++ b/drivers/gpu/drm/drm_atomic_helper.c | |||
@@ -3479,6 +3479,7 @@ EXPORT_SYMBOL(drm_atomic_helper_connector_destroy_state); | |||
3479 | * @green: green correction table | 3479 | * @green: green correction table |
3480 | * @blue: green correction table | 3480 | * @blue: green correction table |
3481 | * @size: size of the tables | 3481 | * @size: size of the tables |
3482 | * @ctx: lock acquire context | ||
3482 | * | 3483 | * |
3483 | * Implements support for legacy gamma correction table for drivers | 3484 | * Implements support for legacy gamma correction table for drivers |
3484 | * that support color management through the DEGAMMA_LUT/GAMMA_LUT | 3485 | * that support color management through the DEGAMMA_LUT/GAMMA_LUT |
@@ -3486,7 +3487,8 @@ EXPORT_SYMBOL(drm_atomic_helper_connector_destroy_state); | |||
3486 | */ | 3487 | */ |
3487 | int drm_atomic_helper_legacy_gamma_set(struct drm_crtc *crtc, | 3488 | int drm_atomic_helper_legacy_gamma_set(struct drm_crtc *crtc, |
3488 | u16 *red, u16 *green, u16 *blue, | 3489 | u16 *red, u16 *green, u16 *blue, |
3489 | uint32_t size) | 3490 | uint32_t size, |
3491 | struct drm_modeset_acquire_ctx *ctx) | ||
3490 | { | 3492 | { |
3491 | struct drm_device *dev = crtc->dev; | 3493 | struct drm_device *dev = crtc->dev; |
3492 | struct drm_mode_config *config = &dev->mode_config; | 3494 | struct drm_mode_config *config = &dev->mode_config; |
diff --git a/drivers/gpu/drm/drm_color_mgmt.c b/drivers/gpu/drm/drm_color_mgmt.c index e1b4084c3d16..b81dcb1d4cb3 100644 --- a/drivers/gpu/drm/drm_color_mgmt.c +++ b/drivers/gpu/drm/drm_color_mgmt.c | |||
@@ -261,7 +261,8 @@ retry: | |||
261 | goto out; | 261 | goto out; |
262 | } | 262 | } |
263 | 263 | ||
264 | ret = crtc->funcs->gamma_set(crtc, r_base, g_base, b_base, crtc->gamma_size); | 264 | ret = crtc->funcs->gamma_set(crtc, r_base, g_base, b_base, |
265 | crtc->gamma_size, &ctx); | ||
265 | 266 | ||
266 | out: | 267 | out: |
267 | if (ret == -EDEADLK) { | 268 | if (ret == -EDEADLK) { |
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index 9147abb774e8..6dc5381e1c45 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c | |||
@@ -256,7 +256,8 @@ static void drm_fb_helper_restore_lut_atomic(struct drm_crtc *crtc) | |||
256 | g_base = r_base + crtc->gamma_size; | 256 | g_base = r_base + crtc->gamma_size; |
257 | b_base = g_base + crtc->gamma_size; | 257 | b_base = g_base + crtc->gamma_size; |
258 | 258 | ||
259 | crtc->funcs->gamma_set(crtc, r_base, g_base, b_base, crtc->gamma_size); | 259 | crtc->funcs->gamma_set(crtc, r_base, g_base, b_base, |
260 | crtc->gamma_size, NULL); | ||
260 | } | 261 | } |
261 | 262 | ||
262 | /** | 263 | /** |
diff --git a/drivers/gpu/drm/gma500/gma_display.c b/drivers/gpu/drm/gma500/gma_display.c index 93ff46535c04..e7fd356acf2e 100644 --- a/drivers/gpu/drm/gma500/gma_display.c +++ b/drivers/gpu/drm/gma500/gma_display.c | |||
@@ -177,7 +177,8 @@ void gma_crtc_load_lut(struct drm_crtc *crtc) | |||
177 | } | 177 | } |
178 | 178 | ||
179 | int gma_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, u16 *blue, | 179 | int gma_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, u16 *blue, |
180 | u32 size) | 180 | u32 size, |
181 | struct drm_modeset_acquire_ctx *ctx) | ||
181 | { | 182 | { |
182 | struct gma_crtc *gma_crtc = to_gma_crtc(crtc); | 183 | struct gma_crtc *gma_crtc = to_gma_crtc(crtc); |
183 | int i; | 184 | int i; |
diff --git a/drivers/gpu/drm/gma500/gma_display.h b/drivers/gpu/drm/gma500/gma_display.h index 166e608923db..239c374b6169 100644 --- a/drivers/gpu/drm/gma500/gma_display.h +++ b/drivers/gpu/drm/gma500/gma_display.h | |||
@@ -73,7 +73,8 @@ extern int gma_crtc_cursor_set(struct drm_crtc *crtc, | |||
73 | extern int gma_crtc_cursor_move(struct drm_crtc *crtc, int x, int y); | 73 | extern int gma_crtc_cursor_move(struct drm_crtc *crtc, int x, int y); |
74 | extern void gma_crtc_load_lut(struct drm_crtc *crtc); | 74 | extern void gma_crtc_load_lut(struct drm_crtc *crtc); |
75 | extern int gma_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, | 75 | extern int gma_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, |
76 | u16 *blue, u32 size); | 76 | u16 *blue, u32 size, |
77 | struct drm_modeset_acquire_ctx *ctx); | ||
77 | extern void gma_crtc_dpms(struct drm_crtc *crtc, int mode); | 78 | extern void gma_crtc_dpms(struct drm_crtc *crtc, int mode); |
78 | extern void gma_crtc_prepare(struct drm_crtc *crtc); | 79 | extern void gma_crtc_prepare(struct drm_crtc *crtc); |
79 | extern void gma_crtc_commit(struct drm_crtc *crtc); | 80 | extern void gma_crtc_commit(struct drm_crtc *crtc); |
diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/drivers/gpu/drm/mgag200/mgag200_mode.c index f2e9b2bc18a5..adb411a078e8 100644 --- a/drivers/gpu/drm/mgag200/mgag200_mode.c +++ b/drivers/gpu/drm/mgag200/mgag200_mode.c | |||
@@ -1393,7 +1393,8 @@ static void mga_crtc_commit(struct drm_crtc *crtc) | |||
1393 | * but it's a requirement that we provide the function | 1393 | * but it's a requirement that we provide the function |
1394 | */ | 1394 | */ |
1395 | static int mga_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, | 1395 | static int mga_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, |
1396 | u16 *blue, uint32_t size) | 1396 | u16 *blue, uint32_t size, |
1397 | struct drm_modeset_acquire_ctx *ctx) | ||
1397 | { | 1398 | { |
1398 | struct mga_crtc *mga_crtc = to_mga_crtc(crtc); | 1399 | struct mga_crtc *mga_crtc = to_mga_crtc(crtc); |
1399 | int i; | 1400 | int i; |
diff --git a/drivers/gpu/drm/nouveau/dispnv04/crtc.c b/drivers/gpu/drm/nouveau/dispnv04/crtc.c index 43ab560de7f9..4b4b0b496262 100644 --- a/drivers/gpu/drm/nouveau/dispnv04/crtc.c +++ b/drivers/gpu/drm/nouveau/dispnv04/crtc.c | |||
@@ -788,7 +788,8 @@ nv_crtc_disable(struct drm_crtc *crtc) | |||
788 | 788 | ||
789 | static int | 789 | static int |
790 | nv_crtc_gamma_set(struct drm_crtc *crtc, u16 *r, u16 *g, u16 *b, | 790 | nv_crtc_gamma_set(struct drm_crtc *crtc, u16 *r, u16 *g, u16 *b, |
791 | uint32_t size) | 791 | uint32_t size, |
792 | struct drm_modeset_acquire_ctx *ctx) | ||
792 | { | 793 | { |
793 | struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); | 794 | struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); |
794 | int i; | 795 | int i; |
diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c index 3d381d5c82ce..bf504788bce6 100644 --- a/drivers/gpu/drm/nouveau/nv50_display.c +++ b/drivers/gpu/drm/nouveau/nv50_display.c | |||
@@ -2218,7 +2218,8 @@ nv50_head_help = { | |||
2218 | 2218 | ||
2219 | static int | 2219 | static int |
2220 | nv50_head_gamma_set(struct drm_crtc *crtc, u16 *r, u16 *g, u16 *b, | 2220 | nv50_head_gamma_set(struct drm_crtc *crtc, u16 *r, u16 *g, u16 *b, |
2221 | uint32_t size) | 2221 | uint32_t size, |
2222 | struct drm_modeset_acquire_ctx *ctx) | ||
2222 | { | 2223 | { |
2223 | struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); | 2224 | struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); |
2224 | u32 i; | 2225 | u32 i; |
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index 146297a702ab..981385eb5389 100644 --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c | |||
@@ -232,7 +232,8 @@ void radeon_crtc_fb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green, | |||
232 | } | 232 | } |
233 | 233 | ||
234 | static int radeon_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, | 234 | static int radeon_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, |
235 | u16 *blue, uint32_t size) | 235 | u16 *blue, uint32_t size, |
236 | struct drm_modeset_acquire_ctx *ctx) | ||
236 | { | 237 | { |
237 | struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); | 238 | struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); |
238 | int i; | 239 | int i; |
diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c index e8f28c9145a0..d86c8cce3182 100644 --- a/drivers/gpu/drm/vc4/vc4_crtc.c +++ b/drivers/gpu/drm/vc4/vc4_crtc.c | |||
@@ -314,7 +314,8 @@ vc4_crtc_lut_load(struct drm_crtc *crtc) | |||
314 | 314 | ||
315 | static int | 315 | static int |
316 | vc4_crtc_gamma_set(struct drm_crtc *crtc, u16 *r, u16 *g, u16 *b, | 316 | vc4_crtc_gamma_set(struct drm_crtc *crtc, u16 *r, u16 *g, u16 *b, |
317 | uint32_t size) | 317 | uint32_t size, |
318 | struct drm_modeset_acquire_ctx *ctx) | ||
318 | { | 319 | { |
319 | struct vc4_crtc *vc4_crtc = to_vc4_crtc(crtc); | 320 | struct vc4_crtc *vc4_crtc = to_vc4_crtc(crtc); |
320 | u32 i; | 321 | u32 i; |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index 6078654d033b..ef9f3a2a4030 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | |||
@@ -2026,7 +2026,8 @@ static int vmw_du_update_layout(struct vmw_private *dev_priv, unsigned num, | |||
2026 | 2026 | ||
2027 | int vmw_du_crtc_gamma_set(struct drm_crtc *crtc, | 2027 | int vmw_du_crtc_gamma_set(struct drm_crtc *crtc, |
2028 | u16 *r, u16 *g, u16 *b, | 2028 | u16 *r, u16 *g, u16 *b, |
2029 | uint32_t size) | 2029 | uint32_t size, |
2030 | struct drm_modeset_acquire_ctx *ctx) | ||
2030 | { | 2031 | { |
2031 | struct vmw_private *dev_priv = vmw_priv(crtc->dev); | 2032 | struct vmw_private *dev_priv = vmw_priv(crtc->dev); |
2032 | int i; | 2033 | int i; |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h index 0c226b2adea5..13f2f1d2818a 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h | |||
@@ -254,7 +254,8 @@ void vmw_du_crtc_save(struct drm_crtc *crtc); | |||
254 | void vmw_du_crtc_restore(struct drm_crtc *crtc); | 254 | void vmw_du_crtc_restore(struct drm_crtc *crtc); |
255 | int vmw_du_crtc_gamma_set(struct drm_crtc *crtc, | 255 | int vmw_du_crtc_gamma_set(struct drm_crtc *crtc, |
256 | u16 *r, u16 *g, u16 *b, | 256 | u16 *r, u16 *g, u16 *b, |
257 | uint32_t size); | 257 | uint32_t size, |
258 | struct drm_modeset_acquire_ctx *ctx); | ||
258 | int vmw_du_crtc_cursor_set2(struct drm_crtc *crtc, struct drm_file *file_priv, | 259 | int vmw_du_crtc_cursor_set2(struct drm_crtc *crtc, struct drm_file *file_priv, |
259 | uint32_t handle, uint32_t width, uint32_t height, | 260 | uint32_t handle, uint32_t width, uint32_t height, |
260 | int32_t hot_x, int32_t hot_y); | 261 | int32_t hot_x, int32_t hot_y); |
diff --git a/include/drm/drm_atomic_helper.h b/include/drm/drm_atomic_helper.h index fd395dc050ee..f0a8678ae98e 100644 --- a/include/drm/drm_atomic_helper.h +++ b/include/drm/drm_atomic_helper.h | |||
@@ -176,7 +176,8 @@ void drm_atomic_helper_connector_destroy_state(struct drm_connector *connector, | |||
176 | struct drm_connector_state *state); | 176 | struct drm_connector_state *state); |
177 | int drm_atomic_helper_legacy_gamma_set(struct drm_crtc *crtc, | 177 | int drm_atomic_helper_legacy_gamma_set(struct drm_crtc *crtc, |
178 | u16 *red, u16 *green, u16 *blue, | 178 | u16 *red, u16 *green, u16 *blue, |
179 | uint32_t size); | 179 | uint32_t size, |
180 | struct drm_modeset_acquire_ctx *ctx); | ||
180 | 181 | ||
181 | /** | 182 | /** |
182 | * drm_atomic_crtc_for_each_plane - iterate over planes currently attached to CRTC | 183 | * drm_atomic_crtc_for_each_plane - iterate over planes currently attached to CRTC |
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index ede60d67976f..a8176a836e25 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -322,7 +322,8 @@ struct drm_crtc_funcs { | |||
322 | * hooks. | 322 | * hooks. |
323 | */ | 323 | */ |
324 | int (*gamma_set)(struct drm_crtc *crtc, u16 *r, u16 *g, u16 *b, | 324 | int (*gamma_set)(struct drm_crtc *crtc, u16 *r, u16 *g, u16 *b, |
325 | uint32_t size); | 325 | uint32_t size, |
326 | struct drm_modeset_acquire_ctx *ctx); | ||
326 | 327 | ||
327 | /** | 328 | /** |
328 | * @destroy: | 329 | * @destroy: |