]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/i915: constify intel_dvo_dev_ops structures
authorJulia Lawall <Julia.Lawall@lip6.fr>
Tue, 8 Dec 2015 20:55:27 +0000 (21:55 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 9 Dec 2015 07:21:10 +0000 (08:21 +0100)
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
drivers/gpu/drm/i915/dvo.h
drivers/gpu/drm/i915/dvo_ch7017.c
drivers/gpu/drm/i915/dvo_ch7xxx.c
drivers/gpu/drm/i915/dvo_ivch.c
drivers/gpu/drm/i915/dvo_ns2501.c
drivers/gpu/drm/i915/dvo_sil164.c
drivers/gpu/drm/i915/dvo_tfp410.c

index 13dea42635542effaf378acbc63fd5b9e4074392..5e6a3013da49645ebf6ea0b1487fc383fc43d3b1 100644 (file)
@@ -129,11 +129,11 @@ struct intel_dvo_dev_ops {
        void (*dump_regs)(struct intel_dvo_device *dvo);
 };
 
-extern struct intel_dvo_dev_ops sil164_ops;
-extern struct intel_dvo_dev_ops ch7xxx_ops;
-extern struct intel_dvo_dev_ops ivch_ops;
-extern struct intel_dvo_dev_ops tfp410_ops;
-extern struct intel_dvo_dev_ops ch7017_ops;
-extern struct intel_dvo_dev_ops ns2501_ops;
+extern const struct intel_dvo_dev_ops sil164_ops;
+extern const struct intel_dvo_dev_ops ch7xxx_ops;
+extern const struct intel_dvo_dev_ops ivch_ops;
+extern const struct intel_dvo_dev_ops tfp410_ops;
+extern const struct intel_dvo_dev_ops ch7017_ops;
+extern const struct intel_dvo_dev_ops ns2501_ops;
 
 #endif /* _INTEL_DVO_H */
index cbb22027a3ce4ba4116a4fae6a8d4e3697b614e3..b3c7c199200cd39cce7a5d1877374c94d33f63c2 100644 (file)
@@ -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,
        .detect = ch7017_detect,
        .mode_valid = ch7017_mode_valid,
index 4b4acc1a06fe8677ac1f91b4aea39f6b4ed767e4..44b3159f2fe8300562e23591f02150a6cec61a43 100644 (file)
@@ -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,
        .detect = ch7xxx_detect,
        .mode_valid = ch7xxx_mode_valid,
index ff9f1b077d83e98bacb97872abfcd6736c0eb3ea..4950b82f5b490e104fd08aae492a4df1faa6b036 100644 (file)
@@ -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,
        .dpms = ivch_dpms,
        .get_hw_state = ivch_get_hw_state,
index 063859fff0f02b13da6496012b4ab224d4d37bd1..2379c33cfe51eee3f312708ebde8617b7ce6e2a2 100644 (file)
@@ -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,
        .detect = ns2501_detect,
        .mode_valid = ns2501_mode_valid,
index 26f13eb634f977da9cd74ac1eeb32319308a4b78..1c1a0674dbab986014919316a39d57d98923cce2 100644 (file)
@@ -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,
        .detect = sil164_detect,
        .mode_valid = sil164_mode_valid,
index 6f1a0a6d4e2211895d71a3510ad21fbaea4e8fd1..31e181da93db7b8187873efc2003a310540e2377 100644 (file)
@@ -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,
        .detect = tfp410_detect,
        .mode_valid = tfp410_mode_valid,