diff options
author | Dave Jones <davej@redhat.com> | 2007-02-22 18:41:28 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2007-02-22 18:41:28 -0500 |
commit | e5524f355a0d272ba5233537a896a668db1f3008 (patch) | |
tree | 0d939cbf96fe20fd914e2b480695e992ac307798 /drivers/char/agp/efficeon-agp.c | |
parent | a5220b463e957c9a434295503cdf635d93454d78 (diff) |
[AGPGART] Further constification.
Make agp_bridge_driver->aperture_sizes and ->masks const.
Also agp_bridge_data->driver
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'drivers/char/agp/efficeon-agp.c')
-rw-r--r-- | drivers/char/agp/efficeon-agp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/agp/efficeon-agp.c b/drivers/char/agp/efficeon-agp.c index 658cb1a72d2c..df8da7262853 100644 --- a/drivers/char/agp/efficeon-agp.c +++ b/drivers/char/agp/efficeon-agp.c | |||
@@ -59,7 +59,7 @@ static struct _efficeon_private { | |||
59 | unsigned long l1_table[EFFICEON_L1_SIZE]; | 59 | unsigned long l1_table[EFFICEON_L1_SIZE]; |
60 | } efficeon_private; | 60 | } efficeon_private; |
61 | 61 | ||
62 | static struct gatt_mask efficeon_generic_masks[] = | 62 | static const struct gatt_mask efficeon_generic_masks[] = |
63 | { | 63 | { |
64 | {.mask = 0x00000001, .type = 0} | 64 | {.mask = 0x00000001, .type = 0} |
65 | }; | 65 | }; |
@@ -70,7 +70,7 @@ static inline unsigned long efficeon_mask_memory(unsigned long addr) | |||
70 | return addr | 0x00000001; | 70 | return addr | 0x00000001; |
71 | } | 71 | } |
72 | 72 | ||
73 | static struct aper_size_info_lvl2 efficeon_generic_sizes[4] = | 73 | static const struct aper_size_info_lvl2 efficeon_generic_sizes[4] = |
74 | { | 74 | { |
75 | {256, 65536, 0}, | 75 | {256, 65536, 0}, |
76 | {128, 32768, 32}, | 76 | {128, 32768, 32}, |
@@ -309,7 +309,7 @@ static int efficeon_remove_memory(struct agp_memory * mem, off_t pg_start, int t | |||
309 | } | 309 | } |
310 | 310 | ||
311 | 311 | ||
312 | static struct agp_bridge_driver efficeon_driver = { | 312 | static const struct agp_bridge_driver efficeon_driver = { |
313 | .owner = THIS_MODULE, | 313 | .owner = THIS_MODULE, |
314 | .aperture_sizes = efficeon_generic_sizes, | 314 | .aperture_sizes = efficeon_generic_sizes, |
315 | .size_type = LVL2_APER_SIZE, | 315 | .size_type = LVL2_APER_SIZE, |