diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-06-15 16:38:06 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-06-22 20:01:08 +0300 |
commit | 7ad329021f5f7d643cc6aade1c54a6bca805bd98 (patch) | |
tree | 0eed448ecec0deca1e9f18060c7ba5fe94858b50 /tests/kms_flip.c | |
parent | 174087d6718bef9ed1c9f7b167ec5704b2b18362 (diff) |
tests/kms_flip: Constify some function arguments
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/kms_flip.c')
-rw-r--r-- | tests/kms_flip.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/kms_flip.c b/tests/kms_flip.c index f61d199b..7b526b5e 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -531,7 +531,7 @@ static int do_wait_for_vblank(struct test_output *o, int pipe_id, } static bool -analog_tv_connector(struct test_output *o) +analog_tv_connector(const struct test_output *o) { uint32_t connector_type = o->kconnector[0]->connector_type; @@ -574,7 +574,7 @@ static void page_flip_handler(int fd, unsigned int frame, unsigned int sec, event_handler(&o->flip_state, frame, sec, usec); } -static double frame_time(struct test_output *o) +static double frame_time(const struct test_output *o) { return 1000.0 * o->kmode[0].htotal * o->kmode[0].vtotal / o->kmode[0].clock; } @@ -640,7 +640,7 @@ static void vblank_handler(int fd, unsigned int frame, unsigned int sec, fixup_premature_vblank_ts(o, &o->vblank_state); } -static void check_state(struct test_output *o, struct event_state *es) +static void check_state(const struct test_output *o, const struct event_state *es) { struct timeval diff; double usec_interflip; @@ -1173,7 +1173,8 @@ fb_is_bound(struct test_output *o, int fb) return true; } -static void check_final_state(struct test_output *o, struct event_state *es, +static void check_final_state(const struct test_output *o, + const struct event_state *es, unsigned int elapsed) { igt_assert_f(es->count > 0, |