diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-01-26 04:49:47 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-02-22 20:13:11 -0500 |
commit | b1f559ecdc6026ef783ccadc62a61e7da906fcb4 (patch) | |
tree | 0191b560a045c6490c326ef0c027797ba9886ffa /drivers/gpu/drm/nouveau/nv17_tv.h | |
parent | 60b212f8ddcdbbfa8595f40300756b9ea8dd387e (diff) |
drm: Mark constant arrays of drm_display_mode const
... and fixup some methods to accept the constant argument.
Now that constant module arrays are loaded into read-only memory, using
const appropriately has some benefits beyond warning the programmer
about likely mistakes.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv17_tv.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv17_tv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv17_tv.h b/drivers/gpu/drm/nouveau/nv17_tv.h index 6bf03840f9eb..622e72221682 100644 --- a/drivers/gpu/drm/nouveau/nv17_tv.h +++ b/drivers/gpu/drm/nouveau/nv17_tv.h | |||
@@ -112,7 +112,7 @@ extern struct nv17_tv_norm_params { | |||
112 | } nv17_tv_norms[NUM_TV_NORMS]; | 112 | } nv17_tv_norms[NUM_TV_NORMS]; |
113 | #define get_tv_norm(enc) (&nv17_tv_norms[to_tv_enc(enc)->tv_norm]) | 113 | #define get_tv_norm(enc) (&nv17_tv_norms[to_tv_enc(enc)->tv_norm]) |
114 | 114 | ||
115 | extern struct drm_display_mode nv17_tv_modes[]; | 115 | extern const struct drm_display_mode nv17_tv_modes[]; |
116 | 116 | ||
117 | static inline int interpolate(int y0, int y1, int y2, int x) | 117 | static inline int interpolate(int y0, int y1, int y2, int x) |
118 | { | 118 | { |