diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2007-02-17 14:11:19 -0500 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2007-02-17 14:11:19 -0500 |
commit | c5a69d57eb48e36f84c0737b5b24ec277d7dbfba (patch) | |
tree | a222d02f4fa9b42e78228cdb106ace4e35bd2ccc /drivers | |
parent | 0bbfb7c2e4b682542a822d3af05cea0e5cb5ba81 (diff) |
Storage class should be before const qualifier
The C99 specification states in section 6.11.5:
The placement of a storage-class specifier other than at the
beginning of the declaration specifiers in a declaration is an
obsolescent feature.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ieee1394/ohci1394.c | 2 | ||||
-rw-r--r-- | drivers/input/serio/libps2.c | 2 | ||||
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-audio.c | 2 | ||||
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c | 2 | ||||
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-std.c | 4 | ||||
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-tuner.c | 2 | ||||
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-video-v4l.c | 2 | ||||
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-wm8775.c | 2 | ||||
-rw-r--r-- | drivers/scsi/arm/eesox.c | 2 |
9 files changed, 10 insertions, 10 deletions
diff --git a/drivers/ieee1394/ohci1394.c b/drivers/ieee1394/ohci1394.c index e982d60ac4b7..06fac0d21264 100644 --- a/drivers/ieee1394/ohci1394.c +++ b/drivers/ieee1394/ohci1394.c | |||
@@ -180,7 +180,7 @@ static int alloc_dma_trm_ctx(struct ti_ohci *ohci, struct dma_trm_ctx *d, | |||
180 | static void ohci1394_pci_remove(struct pci_dev *pdev); | 180 | static void ohci1394_pci_remove(struct pci_dev *pdev); |
181 | 181 | ||
182 | #ifndef __LITTLE_ENDIAN | 182 | #ifndef __LITTLE_ENDIAN |
183 | const static size_t hdr_sizes[] = { | 183 | static const size_t hdr_sizes[] = { |
184 | 3, /* TCODE_WRITEQ */ | 184 | 3, /* TCODE_WRITEQ */ |
185 | 4, /* TCODE_WRITEB */ | 185 | 4, /* TCODE_WRITEB */ |
186 | 3, /* TCODE_WRITE_RESPONSE */ | 186 | 3, /* TCODE_WRITE_RESPONSE */ |
diff --git a/drivers/input/serio/libps2.c b/drivers/input/serio/libps2.c index b3e84d3bb7f7..10d9d74ae43a 100644 --- a/drivers/input/serio/libps2.c +++ b/drivers/input/serio/libps2.c | |||
@@ -97,7 +97,7 @@ EXPORT_SYMBOL(ps2_drain); | |||
97 | 97 | ||
98 | int ps2_is_keyboard_id(char id_byte) | 98 | int ps2_is_keyboard_id(char id_byte) |
99 | { | 99 | { |
100 | const static char keyboard_ids[] = { | 100 | static const char keyboard_ids[] = { |
101 | 0xab, /* Regular keyboards */ | 101 | 0xab, /* Regular keyboards */ |
102 | 0xac, /* NCD Sun keyboard */ | 102 | 0xac, /* NCD Sun keyboard */ |
103 | 0x2b, /* Trust keyboard, translated */ | 103 | 0x2b, /* Trust keyboard, translated */ |
diff --git a/drivers/media/video/pvrusb2/pvrusb2-audio.c b/drivers/media/video/pvrusb2/pvrusb2-audio.c index 9846c464ec80..122496f36845 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-audio.c +++ b/drivers/media/video/pvrusb2/pvrusb2-audio.c | |||
@@ -158,7 +158,7 @@ static unsigned int pvr2_msp3400_describe(struct pvr2_msp3400_handler *ctxt, | |||
158 | } | 158 | } |
159 | 159 | ||
160 | 160 | ||
161 | const static struct pvr2_i2c_handler_functions msp3400_funcs = { | 161 | static const struct pvr2_i2c_handler_functions msp3400_funcs = { |
162 | .detach = (void (*)(void *))pvr2_msp3400_detach, | 162 | .detach = (void (*)(void *))pvr2_msp3400_detach, |
163 | .check = (int (*)(void *))msp3400_check, | 163 | .check = (int (*)(void *))msp3400_check, |
164 | .update = (void (*)(void *))msp3400_update, | 164 | .update = (void (*)(void *))msp3400_update, |
diff --git a/drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c b/drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c index 848fb233d808..8df969c4874c 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c +++ b/drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c | |||
@@ -226,7 +226,7 @@ static void decoder_reset(struct pvr2_v4l_cx2584x *ctxt) | |||
226 | } | 226 | } |
227 | 227 | ||
228 | 228 | ||
229 | const static struct pvr2_i2c_handler_functions hfuncs = { | 229 | static const struct pvr2_i2c_handler_functions hfuncs = { |
230 | .detach = (void (*)(void *))decoder_detach, | 230 | .detach = (void (*)(void *))decoder_detach, |
231 | .check = (int (*)(void *))decoder_check, | 231 | .check = (int (*)(void *))decoder_check, |
232 | .update = (void (*)(void *))decoder_update, | 232 | .update = (void (*)(void *))decoder_update, |
diff --git a/drivers/media/video/pvrusb2/pvrusb2-std.c b/drivers/media/video/pvrusb2/pvrusb2-std.c index f95c598ff627..c08925557ed4 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-std.c +++ b/drivers/media/video/pvrusb2/pvrusb2-std.c | |||
@@ -78,14 +78,14 @@ struct std_name { | |||
78 | #define CSTD_ALL (CSTD_PAL|CSTD_NTSC|CSTD_SECAM) | 78 | #define CSTD_ALL (CSTD_PAL|CSTD_NTSC|CSTD_SECAM) |
79 | 79 | ||
80 | /* Mapping of standard bits to color system */ | 80 | /* Mapping of standard bits to color system */ |
81 | const static struct std_name std_groups[] = { | 81 | static const struct std_name std_groups[] = { |
82 | {"PAL",CSTD_PAL}, | 82 | {"PAL",CSTD_PAL}, |
83 | {"NTSC",CSTD_NTSC}, | 83 | {"NTSC",CSTD_NTSC}, |
84 | {"SECAM",CSTD_SECAM}, | 84 | {"SECAM",CSTD_SECAM}, |
85 | }; | 85 | }; |
86 | 86 | ||
87 | /* Mapping of standard bits to modulation system */ | 87 | /* Mapping of standard bits to modulation system */ |
88 | const static struct std_name std_items[] = { | 88 | static const struct std_name std_items[] = { |
89 | {"B",TSTD_B}, | 89 | {"B",TSTD_B}, |
90 | {"B1",TSTD_B1}, | 90 | {"B1",TSTD_B1}, |
91 | {"D",TSTD_D}, | 91 | {"D",TSTD_D}, |
diff --git a/drivers/media/video/pvrusb2/pvrusb2-tuner.c b/drivers/media/video/pvrusb2/pvrusb2-tuner.c index af9f246f8d3f..bb17db3f6434 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-tuner.c +++ b/drivers/media/video/pvrusb2/pvrusb2-tuner.c | |||
@@ -80,7 +80,7 @@ static unsigned int pvr2_tuner_describe(struct pvr2_tuner_handler *ctxt,char *bu | |||
80 | } | 80 | } |
81 | 81 | ||
82 | 82 | ||
83 | const static struct pvr2_i2c_handler_functions tuner_funcs = { | 83 | static const struct pvr2_i2c_handler_functions tuner_funcs = { |
84 | .detach = (void (*)(void *))pvr2_tuner_detach, | 84 | .detach = (void (*)(void *))pvr2_tuner_detach, |
85 | .check = (int (*)(void *))tuner_check, | 85 | .check = (int (*)(void *))tuner_check, |
86 | .update = (void (*)(void *))tuner_update, | 86 | .update = (void (*)(void *))tuner_update, |
diff --git a/drivers/media/video/pvrusb2/pvrusb2-video-v4l.c b/drivers/media/video/pvrusb2/pvrusb2-video-v4l.c index 05f2cddeb47b..2a826464911a 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-video-v4l.c +++ b/drivers/media/video/pvrusb2/pvrusb2-video-v4l.c | |||
@@ -201,7 +201,7 @@ static unsigned int decoder_describe(struct pvr2_v4l_decoder *ctxt,char *buf,uns | |||
201 | } | 201 | } |
202 | 202 | ||
203 | 203 | ||
204 | const static struct pvr2_i2c_handler_functions hfuncs = { | 204 | static const struct pvr2_i2c_handler_functions hfuncs = { |
205 | .detach = (void (*)(void *))decoder_detach, | 205 | .detach = (void (*)(void *))decoder_detach, |
206 | .check = (int (*)(void *))decoder_check, | 206 | .check = (int (*)(void *))decoder_check, |
207 | .update = (void (*)(void *))decoder_update, | 207 | .update = (void (*)(void *))decoder_update, |
diff --git a/drivers/media/video/pvrusb2/pvrusb2-wm8775.c b/drivers/media/video/pvrusb2/pvrusb2-wm8775.c index 2413e5198e16..7794c34c355e 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-wm8775.c +++ b/drivers/media/video/pvrusb2/pvrusb2-wm8775.c | |||
@@ -126,7 +126,7 @@ static void wm8775_update(struct pvr2_v4l_wm8775 *ctxt) | |||
126 | } | 126 | } |
127 | 127 | ||
128 | 128 | ||
129 | const static struct pvr2_i2c_handler_functions hfuncs = { | 129 | static const struct pvr2_i2c_handler_functions hfuncs = { |
130 | .detach = (void (*)(void *))wm8775_detach, | 130 | .detach = (void (*)(void *))wm8775_detach, |
131 | .check = (int (*)(void *))wm8775_check, | 131 | .check = (int (*)(void *))wm8775_check, |
132 | .update = (void (*)(void *))wm8775_update, | 132 | .update = (void (*)(void *))wm8775_update, |
diff --git a/drivers/scsi/arm/eesox.c b/drivers/scsi/arm/eesox.c index 4677152142d9..d4136524fc46 100644 --- a/drivers/scsi/arm/eesox.c +++ b/drivers/scsi/arm/eesox.c | |||
@@ -196,7 +196,7 @@ static void eesoxscsi_buffer_in(void *buf, int length, void __iomem *base) | |||
196 | const void __iomem *reg_fas = base + EESOX_FAS216_OFFSET; | 196 | const void __iomem *reg_fas = base + EESOX_FAS216_OFFSET; |
197 | const void __iomem *reg_dmastat = base + EESOX_DMASTAT; | 197 | const void __iomem *reg_dmastat = base + EESOX_DMASTAT; |
198 | const void __iomem *reg_dmadata = base + EESOX_DMADATA; | 198 | const void __iomem *reg_dmadata = base + EESOX_DMADATA; |
199 | const register unsigned long mask = 0xffff; | 199 | register const unsigned long mask = 0xffff; |
200 | 200 | ||
201 | do { | 201 | do { |
202 | unsigned int status; | 202 | unsigned int status; |