xf86drmMode: constify drmModeCrtcSetGamma

The data is never modified, so it should be const

Signed-off-by: Xaver Hugl <xaver.hugl@gmail.com>
main
Xaver Hugl 2023-04-08 01:42:17 +02:00 committed by Simon Ser
parent 5e0b1df4fb
commit cc8c223c9e
2 changed files with 3 additions and 3 deletions

View File

@ -1004,8 +1004,8 @@ drm_public int drmModeCrtcGetGamma(int fd, uint32_t crtc_id, uint32_t size,
}
drm_public int drmModeCrtcSetGamma(int fd, uint32_t crtc_id, uint32_t size,
uint16_t *red, uint16_t *green,
uint16_t *blue)
const uint16_t *red, const uint16_t *green,
const uint16_t *blue)
{
struct drm_mode_crtc_lut l;

View File

@ -416,7 +416,7 @@ extern int drmModeConnectorSetProperty(int fd, uint32_t connector_id, uint32_t p
extern int drmCheckModesettingSupported(const char *busid);
extern int drmModeCrtcSetGamma(int fd, uint32_t crtc_id, uint32_t size,
uint16_t *red, uint16_t *green, uint16_t *blue);
const uint16_t *red, const uint16_t *green, const uint16_t *blue);
extern int drmModeCrtcGetGamma(int fd, uint32_t crtc_id, uint32_t size,
uint16_t *red, uint16_t *green, uint16_t *blue);
extern int drmModePageFlip(int fd, uint32_t crtc_id, uint32_t fb_id,