diff options
author | Enrico Scholz <enrico.scholz@sigma-chemnitz.de> | 2008-08-29 06:59:50 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-09-01 16:37:51 -0400 |
commit | 7dad482ed0648a40e403d1ed44e0ea92248632f1 (patch) | |
tree | 609b0663fa6d240b19aaed3bc89ce598fff83513 /arch/arm/mach-pxa/include/mach | |
parent | 80ebf20f34c30760cfba7b5e0a418241181d2cd9 (diff) |
[MTD] [NAND] pxa3xx_nand: added some 'const' annotations to the exported API
This patch marks some attributes as 'const' which are set only once and
never be modified by the driver. There are some changes in parameter
list and variable declarations too which mark them as 'const'.
Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'arch/arm/mach-pxa/include/mach')
-rw-r--r-- | arch/arm/mach-pxa/include/mach/pxa3xx_nand.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-pxa/include/mach/pxa3xx_nand.h b/arch/arm/mach-pxa/include/mach/pxa3xx_nand.h index 6ac9aea0b0b5..cfcb2e21aeeb 100644 --- a/arch/arm/mach-pxa/include/mach/pxa3xx_nand.h +++ b/arch/arm/mach-pxa/include/mach/pxa3xx_nand.h | |||
@@ -30,8 +30,8 @@ struct pxa3xx_nand_cmdset { | |||
30 | }; | 30 | }; |
31 | 31 | ||
32 | struct pxa3xx_nand_flash { | 32 | struct pxa3xx_nand_flash { |
33 | struct pxa3xx_nand_timing *timing; /* NAND Flash timing */ | 33 | const struct pxa3xx_nand_timing *timing; /* NAND Flash timing */ |
34 | struct pxa3xx_nand_cmdset *cmdset; | 34 | const struct pxa3xx_nand_cmdset *cmdset; |
35 | 35 | ||
36 | uint32_t page_per_block;/* Pages per block (PG_PER_BLK) */ | 36 | uint32_t page_per_block;/* Pages per block (PG_PER_BLK) */ |
37 | uint32_t page_size; /* Page size in bytes (PAGE_SZ) */ | 37 | uint32_t page_size; /* Page size in bytes (PAGE_SZ) */ |
@@ -56,8 +56,8 @@ struct pxa3xx_nand_platform_data { | |||
56 | */ | 56 | */ |
57 | int enable_arbiter; | 57 | int enable_arbiter; |
58 | 58 | ||
59 | struct mtd_partition *parts; | 59 | const struct mtd_partition *parts; |
60 | unsigned int nr_parts; | 60 | unsigned int nr_parts; |
61 | 61 | ||
62 | struct pxa3xx_nand_flash * const flash; | 62 | struct pxa3xx_nand_flash * const flash; |
63 | size_t num_flash; | 63 | size_t num_flash; |