Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915: constify intel_dvo_dev_ops structures

The intel_dvo_dev_ops structures are never modified, so declare them as
const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1449608127-21715-1-git-send-email-Julia.Lawall@lip6.fr

authored by

Julia Lawall and committed by
Daniel Vetter
0f555644 2b81b844

+12 -12
+6 -6
drivers/gpu/drm/i915/dvo.h
··· 129 129 void (*dump_regs)(struct intel_dvo_device *dvo); 130 130 }; 131 131 132 - extern struct intel_dvo_dev_ops sil164_ops; 133 - extern struct intel_dvo_dev_ops ch7xxx_ops; 134 - extern struct intel_dvo_dev_ops ivch_ops; 135 - extern struct intel_dvo_dev_ops tfp410_ops; 136 - extern struct intel_dvo_dev_ops ch7017_ops; 137 - extern struct intel_dvo_dev_ops ns2501_ops; 132 + extern const struct intel_dvo_dev_ops sil164_ops; 133 + extern const struct intel_dvo_dev_ops ch7xxx_ops; 134 + extern const struct intel_dvo_dev_ops ivch_ops; 135 + extern const struct intel_dvo_dev_ops tfp410_ops; 136 + extern const struct intel_dvo_dev_ops ch7017_ops; 137 + extern const struct intel_dvo_dev_ops ns2501_ops; 138 138 139 139 #endif /* _INTEL_DVO_H */
+1 -1
drivers/gpu/drm/i915/dvo_ch7017.c
··· 402 402 } 403 403 } 404 404 405 - struct intel_dvo_dev_ops ch7017_ops = { 405 + const struct intel_dvo_dev_ops ch7017_ops = { 406 406 .init = ch7017_init, 407 407 .detect = ch7017_detect, 408 408 .mode_valid = ch7017_mode_valid,
+1 -1
drivers/gpu/drm/i915/dvo_ch7xxx.c
··· 356 356 } 357 357 } 358 358 359 - struct intel_dvo_dev_ops ch7xxx_ops = { 359 + const struct intel_dvo_dev_ops ch7xxx_ops = { 360 360 .init = ch7xxx_init, 361 361 .detect = ch7xxx_detect, 362 362 .mode_valid = ch7xxx_mode_valid,
+1 -1
drivers/gpu/drm/i915/dvo_ivch.c
··· 490 490 } 491 491 } 492 492 493 - struct intel_dvo_dev_ops ivch_ops = { 493 + const struct intel_dvo_dev_ops ivch_ops = { 494 494 .init = ivch_init, 495 495 .dpms = ivch_dpms, 496 496 .get_hw_state = ivch_get_hw_state,
+1 -1
drivers/gpu/drm/i915/dvo_ns2501.c
··· 698 698 } 699 699 } 700 700 701 - struct intel_dvo_dev_ops ns2501_ops = { 701 + const struct intel_dvo_dev_ops ns2501_ops = { 702 702 .init = ns2501_init, 703 703 .detect = ns2501_detect, 704 704 .mode_valid = ns2501_mode_valid,
+1 -1
drivers/gpu/drm/i915/dvo_sil164.c
··· 267 267 } 268 268 } 269 269 270 - struct intel_dvo_dev_ops sil164_ops = { 270 + const struct intel_dvo_dev_ops sil164_ops = { 271 271 .init = sil164_init, 272 272 .detect = sil164_detect, 273 273 .mode_valid = sil164_mode_valid,
+1 -1
drivers/gpu/drm/i915/dvo_tfp410.c
··· 306 306 } 307 307 } 308 308 309 - struct intel_dvo_dev_ops tfp410_ops = { 309 + const struct intel_dvo_dev_ops tfp410_ops = { 310 310 .init = tfp410_init, 311 311 .detect = tfp410_detect, 312 312 .mode_valid = tfp410_mode_valid,