diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-05-05 19:16:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-05 19:36:47 -0400 |
commit | 75c96f85845a6707b0f9916cb263cb3584f7d48f (patch) | |
tree | 45a64d1c9bb71d7093db3a11e0f21465c2e3dec6 /drivers/cdrom/mcdx.c | |
parent | 5e198d94dd0c3ec7f6138229e2e412c2c6268c38 (diff) |
[PATCH] make some things static
This patch makes some needlessly global identifiers static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Arjan van de Ven <arjanv@infradead.org>
Acked-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/cdrom/mcdx.c')
-rw-r--r-- | drivers/cdrom/mcdx.c | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/drivers/cdrom/mcdx.c b/drivers/cdrom/mcdx.c index ccde7ab491d4..07bbd24e3c18 100644 --- a/drivers/cdrom/mcdx.c +++ b/drivers/cdrom/mcdx.c | |||
@@ -107,20 +107,20 @@ static const char *mcdx_c_version | |||
107 | The _direct_ size is the number of sectors we're allowed to skip | 107 | The _direct_ size is the number of sectors we're allowed to skip |
108 | directly (performing a read instead of requesting the new sector | 108 | directly (performing a read instead of requesting the new sector |
109 | needed */ | 109 | needed */ |
110 | const int REQUEST_SIZE = 800; /* should be less then 255 * 4 */ | 110 | static const int REQUEST_SIZE = 800; /* should be less then 255 * 4 */ |
111 | const int DIRECT_SIZE = 400; /* should be less then REQUEST_SIZE */ | 111 | static const int DIRECT_SIZE = 400; /* should be less then REQUEST_SIZE */ |
112 | 112 | ||
113 | enum drivemodes { TOC, DATA, RAW, COOKED }; | 113 | enum drivemodes { TOC, DATA, RAW, COOKED }; |
114 | enum datamodes { MODE0, MODE1, MODE2 }; | 114 | enum datamodes { MODE0, MODE1, MODE2 }; |
115 | enum resetmodes { SOFT, HARD }; | 115 | enum resetmodes { SOFT, HARD }; |
116 | 116 | ||
117 | const int SINGLE = 0x01; /* single speed drive (FX001S, LU) */ | 117 | static const int SINGLE = 0x01; /* single speed drive (FX001S, LU) */ |
118 | const int DOUBLE = 0x02; /* double speed drive (FX001D, ..? */ | 118 | static const int DOUBLE = 0x02; /* double speed drive (FX001D, ..? */ |
119 | const int DOOR = 0x04; /* door locking capability */ | 119 | static const int DOOR = 0x04; /* door locking capability */ |
120 | const int MULTI = 0x08; /* multi session capability */ | 120 | static const int MULTI = 0x08; /* multi session capability */ |
121 | 121 | ||
122 | const unsigned char READ1X = 0xc0; | 122 | static const unsigned char READ1X = 0xc0; |
123 | const unsigned char READ2X = 0xc1; | 123 | static const unsigned char READ2X = 0xc1; |
124 | 124 | ||
125 | 125 | ||
126 | /* DECLARATIONS ****************************************************/ | 126 | /* DECLARATIONS ****************************************************/ |
@@ -210,9 +210,7 @@ struct s_drive_stuff { | |||
210 | repeated here to show what's going on. And to sense, if they're | 210 | repeated here to show what's going on. And to sense, if they're |
211 | changed elsewhere. */ | 211 | changed elsewhere. */ |
212 | 212 | ||
213 | /* declared in blk.h */ | 213 | static int mcdx_init(void); |
214 | int mcdx_init(void); | ||
215 | void do_mcdx_request(request_queue_t * q); | ||
216 | 214 | ||
217 | static int mcdx_block_open(struct inode *inode, struct file *file) | 215 | static int mcdx_block_open(struct inode *inode, struct file *file) |
218 | { | 216 | { |
@@ -569,7 +567,7 @@ static int mcdx_audio_ioctl(struct cdrom_device_info *cdi, | |||
569 | } | 567 | } |
570 | } | 568 | } |
571 | 569 | ||
572 | void do_mcdx_request(request_queue_t * q) | 570 | static void do_mcdx_request(request_queue_t * q) |
573 | { | 571 | { |
574 | struct s_drive_stuff *stuffp; | 572 | struct s_drive_stuff *stuffp; |
575 | struct request *req; | 573 | struct request *req; |
@@ -1028,7 +1026,7 @@ int __mcdx_init(void) | |||
1028 | return 0; | 1026 | return 0; |
1029 | } | 1027 | } |
1030 | 1028 | ||
1031 | void __exit mcdx_exit(void) | 1029 | static void __exit mcdx_exit(void) |
1032 | { | 1030 | { |
1033 | int i; | 1031 | int i; |
1034 | 1032 | ||
@@ -1075,7 +1073,7 @@ module_exit(mcdx_exit); | |||
1075 | 1073 | ||
1076 | /* Support functions ************************************************/ | 1074 | /* Support functions ************************************************/ |
1077 | 1075 | ||
1078 | int __init mcdx_init_drive(int drive) | 1076 | static int __init mcdx_init_drive(int drive) |
1079 | { | 1077 | { |
1080 | struct s_version version; | 1078 | struct s_version version; |
1081 | struct gendisk *disk; | 1079 | struct gendisk *disk; |
@@ -1261,7 +1259,7 @@ int __init mcdx_init_drive(int drive) | |||
1261 | return 0; | 1259 | return 0; |
1262 | } | 1260 | } |
1263 | 1261 | ||
1264 | int __init mcdx_init(void) | 1262 | static int __init mcdx_init(void) |
1265 | { | 1263 | { |
1266 | int drive; | 1264 | int drive; |
1267 | xwarn("Version 2.14(hs) \n"); | 1265 | xwarn("Version 2.14(hs) \n"); |