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/uninorth-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/uninorth-agp.c')
-rw-r--r-- | drivers/char/agp/uninorth-agp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/char/agp/uninorth-agp.c b/drivers/char/agp/uninorth-agp.c index 6c45702e542c..292b4ad1ae37 100644 --- a/drivers/char/agp/uninorth-agp.c +++ b/drivers/char/agp/uninorth-agp.c | |||
@@ -460,7 +460,7 @@ void null_cache_flush(void) | |||
460 | 460 | ||
461 | /* Setup function */ | 461 | /* Setup function */ |
462 | 462 | ||
463 | static struct aper_size_info_32 uninorth_sizes[7] = | 463 | static const struct aper_size_info_32 uninorth_sizes[7] = |
464 | { | 464 | { |
465 | #if 0 /* Not sure uninorth supports that high aperture sizes */ | 465 | #if 0 /* Not sure uninorth supports that high aperture sizes */ |
466 | {256, 65536, 6, 64}, | 466 | {256, 65536, 6, 64}, |
@@ -477,7 +477,7 @@ static struct aper_size_info_32 uninorth_sizes[7] = | |||
477 | * Not sure that u3 supports that high aperture sizes but it | 477 | * Not sure that u3 supports that high aperture sizes but it |
478 | * would strange if it did not :) | 478 | * would strange if it did not :) |
479 | */ | 479 | */ |
480 | static struct aper_size_info_32 u3_sizes[8] = | 480 | static const struct aper_size_info_32 u3_sizes[8] = |
481 | { | 481 | { |
482 | {512, 131072, 7, 128}, | 482 | {512, 131072, 7, 128}, |
483 | {256, 65536, 6, 64}, | 483 | {256, 65536, 6, 64}, |
@@ -489,7 +489,7 @@ static struct aper_size_info_32 u3_sizes[8] = | |||
489 | {4, 1024, 0, 1} | 489 | {4, 1024, 0, 1} |
490 | }; | 490 | }; |
491 | 491 | ||
492 | struct agp_bridge_driver uninorth_agp_driver = { | 492 | struct const agp_bridge_driver uninorth_agp_driver = { |
493 | .owner = THIS_MODULE, | 493 | .owner = THIS_MODULE, |
494 | .aperture_sizes = (void *)uninorth_sizes, | 494 | .aperture_sizes = (void *)uninorth_sizes, |
495 | .size_type = U32_APER_SIZE, | 495 | .size_type = U32_APER_SIZE, |
@@ -514,7 +514,7 @@ struct agp_bridge_driver uninorth_agp_driver = { | |||
514 | .cant_use_aperture = 1, | 514 | .cant_use_aperture = 1, |
515 | }; | 515 | }; |
516 | 516 | ||
517 | struct agp_bridge_driver u3_agp_driver = { | 517 | struct const agp_bridge_driver u3_agp_driver = { |
518 | .owner = THIS_MODULE, | 518 | .owner = THIS_MODULE, |
519 | .aperture_sizes = (void *)u3_sizes, | 519 | .aperture_sizes = (void *)u3_sizes, |
520 | .size_type = U32_APER_SIZE, | 520 | .size_type = U32_APER_SIZE, |