xf86drmMode: constify drmModeCrtcSetGamma
The data is never modified, so it should be const Signed-off-by: Xaver Hugl <xaver.hugl@gmail.com>main
parent
5e0b1df4fb
commit
cc8c223c9e
|
@ -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;
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue