Commit 0f555644 authored by Julia Lawall's avatar Julia Lawall Committed by Daniel Vetter

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1449608127-21715-1-git-send-email-Julia.Lawall@lip6.fr
parent 2b81b844
...@@ -129,11 +129,11 @@ struct intel_dvo_dev_ops { ...@@ -129,11 +129,11 @@ struct intel_dvo_dev_ops {
void (*dump_regs)(struct intel_dvo_device *dvo); void (*dump_regs)(struct intel_dvo_device *dvo);
}; };
extern struct intel_dvo_dev_ops sil164_ops; extern const struct intel_dvo_dev_ops sil164_ops;
extern struct intel_dvo_dev_ops ch7xxx_ops; extern const struct intel_dvo_dev_ops ch7xxx_ops;
extern struct intel_dvo_dev_ops ivch_ops; extern const struct intel_dvo_dev_ops ivch_ops;
extern struct intel_dvo_dev_ops tfp410_ops; extern const struct intel_dvo_dev_ops tfp410_ops;
extern struct intel_dvo_dev_ops ch7017_ops; extern const struct intel_dvo_dev_ops ch7017_ops;
extern struct intel_dvo_dev_ops ns2501_ops; extern const struct intel_dvo_dev_ops ns2501_ops;
#endif /* _INTEL_DVO_H */ #endif /* _INTEL_DVO_H */
...@@ -402,7 +402,7 @@ static void ch7017_destroy(struct intel_dvo_device *dvo) ...@@ -402,7 +402,7 @@ static void ch7017_destroy(struct intel_dvo_device *dvo)
} }
} }
struct intel_dvo_dev_ops ch7017_ops = { const struct intel_dvo_dev_ops ch7017_ops = {
.init = ch7017_init, .init = ch7017_init,
.detect = ch7017_detect, .detect = ch7017_detect,
.mode_valid = ch7017_mode_valid, .mode_valid = ch7017_mode_valid,
......
...@@ -356,7 +356,7 @@ static void ch7xxx_destroy(struct intel_dvo_device *dvo) ...@@ -356,7 +356,7 @@ static void ch7xxx_destroy(struct intel_dvo_device *dvo)
} }
} }
struct intel_dvo_dev_ops ch7xxx_ops = { const struct intel_dvo_dev_ops ch7xxx_ops = {
.init = ch7xxx_init, .init = ch7xxx_init,
.detect = ch7xxx_detect, .detect = ch7xxx_detect,
.mode_valid = ch7xxx_mode_valid, .mode_valid = ch7xxx_mode_valid,
......
...@@ -490,7 +490,7 @@ static void ivch_destroy(struct intel_dvo_device *dvo) ...@@ -490,7 +490,7 @@ static void ivch_destroy(struct intel_dvo_device *dvo)
} }
} }
struct intel_dvo_dev_ops ivch_ops = { const struct intel_dvo_dev_ops ivch_ops = {
.init = ivch_init, .init = ivch_init,
.dpms = ivch_dpms, .dpms = ivch_dpms,
.get_hw_state = ivch_get_hw_state, .get_hw_state = ivch_get_hw_state,
......
...@@ -698,7 +698,7 @@ static void ns2501_destroy(struct intel_dvo_device *dvo) ...@@ -698,7 +698,7 @@ static void ns2501_destroy(struct intel_dvo_device *dvo)
} }
} }
struct intel_dvo_dev_ops ns2501_ops = { const struct intel_dvo_dev_ops ns2501_ops = {
.init = ns2501_init, .init = ns2501_init,
.detect = ns2501_detect, .detect = ns2501_detect,
.mode_valid = ns2501_mode_valid, .mode_valid = ns2501_mode_valid,
......
...@@ -267,7 +267,7 @@ static void sil164_destroy(struct intel_dvo_device *dvo) ...@@ -267,7 +267,7 @@ static void sil164_destroy(struct intel_dvo_device *dvo)
} }
} }
struct intel_dvo_dev_ops sil164_ops = { const struct intel_dvo_dev_ops sil164_ops = {
.init = sil164_init, .init = sil164_init,
.detect = sil164_detect, .detect = sil164_detect,
.mode_valid = sil164_mode_valid, .mode_valid = sil164_mode_valid,
......
...@@ -306,7 +306,7 @@ static void tfp410_destroy(struct intel_dvo_device *dvo) ...@@ -306,7 +306,7 @@ static void tfp410_destroy(struct intel_dvo_device *dvo)
} }
} }
struct intel_dvo_dev_ops tfp410_ops = { const struct intel_dvo_dev_ops tfp410_ops = {
.init = tfp410_init, .init = tfp410_init,
.detect = tfp410_detect, .detect = tfp410_detect,
.mode_valid = tfp410_mode_valid, .mode_valid = tfp410_mode_valid,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment