diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2018-02-22 16:40:20 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2018-02-22 16:40:20 -0800 |
commit | dde6c5e93e26f6706cd04745928ae9ad5dddfc9f (patch) | |
tree | e382a61e4af0016637efc14a05d5aa39d091e303 /src/drm_fb.c | |
parent | 7608e85f127faf0e09b1f935654baf57b59f717f (diff) |
fb,settings,drm_fb,sd_fb: const settings_t readers
The fb_ops entrypoints and their descendants are purely readers
of the settings, so constify their settings_t instances and the
operative functions which only read settings.
Diffstat (limited to 'src/drm_fb.c')
-rw-r--r-- | src/drm_fb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drm_fb.c b/src/drm_fb.c index 855fce1..6599d9d 100644 --- a/src/drm_fb.c +++ b/src/drm_fb.c @@ -262,7 +262,7 @@ static setting_desc_t * mode_desc_generator(void *setup_context) /* setup is called repeatedly as settings is constructed, until 0 is returned. */ /* a negative value is returned on error */ /* positive value indicates another setting is needed, described in next_setting */ -int drm_fb_setup(settings_t *settings, setting_desc_t **next_setting) +int drm_fb_setup(const settings_t *settings, setting_desc_t **next_setting) { drm_fb_setup_t context = {}; setting_desc_generator_t generators[] = { @@ -314,7 +314,7 @@ static drmModeModeInfo * lookup_mode(drmModeConnector *connector, const char *mo /* prepare the drm context for use with the supplied settings */ -void * drm_fb_init(settings_t *settings) +void * drm_fb_init(const settings_t *settings) { drm_fb_t *c; const char *dev; |