[PATCH] drivers/isdn/: make some code static

This patch makes some needlessly global code static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Schindler <armin@melware.de>
Signed-off-by: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Adrian Bunk and committed by Linus Torvalds aade0e82 687a21ce

+20 -28
+1 -1
drivers/isdn/hardware/eicon/dadapter.c
··· 44 Array to held adapter information 45 -------------------------------------------------------------------------- */ 46 static DESCRIPTOR HandleTable[NEW_MAX_DESCRIPTORS]; 47 - dword Adapters = 0; /* Number of adapters */ 48 /* -------------------------------------------------------------------------- 49 Shadow IDI_DIMAINT 50 and 'shadow' debug stuff
··· 44 Array to held adapter information 45 -------------------------------------------------------------------------- */ 46 static DESCRIPTOR HandleTable[NEW_MAX_DESCRIPTORS]; 47 + static dword Adapters = 0; /* Number of adapters */ 48 /* -------------------------------------------------------------------------- 49 Shadow IDI_DIMAINT 50 and 'shadow' debug stuff
+2 -2
drivers/isdn/hisax/hfc4s8s_l1.c
··· 1465 /******************************************/ 1466 /* disable memory mapped ports / io ports */ 1467 /******************************************/ 1468 - void 1469 release_pci_ports(hfc4s8s_hw * hw) 1470 { 1471 pci_write_config_word(hw->pdev, PCI_COMMAND, 0); ··· 1481 /*****************************************/ 1482 /* enable memory mapped ports / io ports */ 1483 /*****************************************/ 1484 - void 1485 enable_pci_ports(hfc4s8s_hw * hw) 1486 { 1487 #ifdef CONFIG_HISAX_HFC4S8S_PCIMEM
··· 1465 /******************************************/ 1466 /* disable memory mapped ports / io ports */ 1467 /******************************************/ 1468 + static void 1469 release_pci_ports(hfc4s8s_hw * hw) 1470 { 1471 pci_write_config_word(hw->pdev, PCI_COMMAND, 0); ··· 1481 /*****************************************/ 1482 /* enable memory mapped ports / io ports */ 1483 /*****************************************/ 1484 + static void 1485 enable_pci_ports(hfc4s8s_hw * hw) 1486 { 1487 #ifdef CONFIG_HISAX_HFC4S8S_PCIMEM
+11 -9
drivers/isdn/hysdn/hycapi.c
··· 42 43 static hycapi_appl hycapi_applications[CAPI_MAXAPPL]; 44 45 static inline int _hycapi_appCheck(int app_id, int ctrl_no) 46 { 47 if((ctrl_no <= 0) || (ctrl_no > CAPI_MAXCONTR) || (app_id <= 0) || ··· 59 Kernel-Capi callback reset_ctr 60 ******************************/ 61 62 - void 63 hycapi_reset_ctr(struct capi_ctr *ctrl) 64 { 65 hycapictrl_info *cinfo = ctrl->driverdata; ··· 75 Kernel-Capi callback remove_ctr 76 ******************************/ 77 78 - void 79 hycapi_remove_ctr(struct capi_ctr *ctrl) 80 { 81 int i; ··· 217 The application is recorded in the internal list. 218 *************************************************************/ 219 220 - void 221 hycapi_register_appl(struct capi_ctr *ctrl, __u16 appl, 222 capi_register_params *rp) 223 { ··· 293 registration at controller-level 294 ******************************************************************/ 295 296 - void 297 hycapi_release_appl(struct capi_ctr *ctrl, __u16 appl) 298 { 299 int chk; ··· 366 367 ***************************************************************/ 368 369 - u16 hycapi_send_message(struct capi_ctr *ctrl, struct sk_buff *skb) 370 { 371 __u16 appl_id; 372 int _len, _len2; ··· 439 440 *********************************************************************/ 441 442 - int hycapi_read_proc(char *page, char **start, off_t off, 443 - int count, int *eof, struct capi_ctr *ctrl) 444 { 445 hycapictrl_info *cinfo = (hycapictrl_info *)(ctrl->driverdata); 446 hysdn_card *card = cinfo->card; ··· 487 488 **************************************************************/ 489 490 - int hycapi_load_firmware(struct capi_ctr *ctrl, capiloaddata *data) 491 { 492 #ifdef HYCAPI_PRINTFNAMES 493 printk(KERN_NOTICE "hycapi_load_firmware\n"); ··· 496 } 497 498 499 - char *hycapi_procinfo(struct capi_ctr *ctrl) 500 { 501 hycapictrl_info *cinfo = (hycapictrl_info *)(ctrl->driverdata); 502 #ifdef HYCAPI_PRINTFNAMES
··· 42 43 static hycapi_appl hycapi_applications[CAPI_MAXAPPL]; 44 45 + static u16 hycapi_send_message(struct capi_ctr *ctrl, struct sk_buff *skb); 46 + 47 static inline int _hycapi_appCheck(int app_id, int ctrl_no) 48 { 49 if((ctrl_no <= 0) || (ctrl_no > CAPI_MAXCONTR) || (app_id <= 0) || ··· 57 Kernel-Capi callback reset_ctr 58 ******************************/ 59 60 + static void 61 hycapi_reset_ctr(struct capi_ctr *ctrl) 62 { 63 hycapictrl_info *cinfo = ctrl->driverdata; ··· 73 Kernel-Capi callback remove_ctr 74 ******************************/ 75 76 + static void 77 hycapi_remove_ctr(struct capi_ctr *ctrl) 78 { 79 int i; ··· 215 The application is recorded in the internal list. 216 *************************************************************/ 217 218 + static void 219 hycapi_register_appl(struct capi_ctr *ctrl, __u16 appl, 220 capi_register_params *rp) 221 { ··· 291 registration at controller-level 292 ******************************************************************/ 293 294 + static void 295 hycapi_release_appl(struct capi_ctr *ctrl, __u16 appl) 296 { 297 int chk; ··· 364 365 ***************************************************************/ 366 367 + static u16 hycapi_send_message(struct capi_ctr *ctrl, struct sk_buff *skb) 368 { 369 __u16 appl_id; 370 int _len, _len2; ··· 437 438 *********************************************************************/ 439 440 + static int hycapi_read_proc(char *page, char **start, off_t off, 441 + int count, int *eof, struct capi_ctr *ctrl) 442 { 443 hycapictrl_info *cinfo = (hycapictrl_info *)(ctrl->driverdata); 444 hysdn_card *card = cinfo->card; ··· 485 486 **************************************************************/ 487 488 + static int hycapi_load_firmware(struct capi_ctr *ctrl, capiloaddata *data) 489 { 490 #ifdef HYCAPI_PRINTFNAMES 491 printk(KERN_NOTICE "hycapi_load_firmware\n"); ··· 494 } 495 496 497 + static char *hycapi_procinfo(struct capi_ctr *ctrl) 498 { 499 hycapictrl_info *cinfo = (hycapictrl_info *)(ctrl->driverdata); 500 #ifdef HYCAPI_PRINTFNAMES
+2 -2
drivers/isdn/hysdn/hysdn_boot.c
··· 53 /* to be called at start of POF file reading, */ 54 /* before starting any decryption on any POF record. */ 55 /*****************************************************/ 56 - void 57 StartDecryption(struct boot_data *boot) 58 { 59 boot->Cryptor = CRYPT_STARTTERM; ··· 66 /* to HI and LO boot loader and (all) seq tags, because */ 67 /* global Cryptor is started for whole POF. */ 68 /***************************************************************/ 69 - void 70 DecryptBuf(struct boot_data *boot, int cnt) 71 { 72 uchar *bufp = boot->buf.BootBuf;
··· 53 /* to be called at start of POF file reading, */ 54 /* before starting any decryption on any POF record. */ 55 /*****************************************************/ 56 + static void 57 StartDecryption(struct boot_data *boot) 58 { 59 boot->Cryptor = CRYPT_STARTTERM; ··· 66 /* to HI and LO boot loader and (all) seq tags, because */ 67 /* global Cryptor is started for whole POF. */ 68 /***************************************************************/ 69 + static void 70 DecryptBuf(struct boot_data *boot, int cnt) 71 { 72 uchar *bufp = boot->buf.BootBuf;
-12
drivers/isdn/hysdn/hysdn_defs.h
··· 227 /*****************/ 228 /* exported vars */ 229 /*****************/ 230 - extern int cardmax; /* number of found cards */ 231 extern hysdn_card *card_root; /* pointer to first card */ 232 233 ··· 243 /* hysdn_proclog.c */ 244 extern int hysdn_proclog_init(hysdn_card *); /* init proc log entry */ 245 extern void hysdn_proclog_release(hysdn_card *); /* deinit proc log entry */ 246 - extern void put_log_buffer(hysdn_card *, char *); /* output log data */ 247 extern void hysdn_addlog(hysdn_card *, char *,...); /* output data to log */ 248 extern void hysdn_card_errlog(hysdn_card *, tErrLogEntry *, int); /* output card log */ 249 ··· 276 extern int hycapi_capi_create(hysdn_card *); /* create a new capi device */ 277 extern int hycapi_capi_release(hysdn_card *); /* delete the device */ 278 extern int hycapi_capi_stop(hysdn_card *card); /* suspend */ 279 - extern int hycapi_load_firmware(struct capi_ctr *, capiloaddata *); 280 - extern void hycapi_reset_ctr(struct capi_ctr *); 281 - extern void hycapi_remove_ctr(struct capi_ctr *); 282 - extern void hycapi_register_appl(struct capi_ctr *, __u16 appl, 283 - capi_register_params *); 284 - extern void hycapi_release_appl(struct capi_ctr *, __u16 appl); 285 - extern u16 hycapi_send_message(struct capi_ctr *, struct sk_buff *skb); 286 - extern char *hycapi_procinfo(struct capi_ctr *); 287 - extern int hycapi_read_proc(char *page, char **start, off_t off, 288 - int count, int *eof, struct capi_ctr *card); 289 extern void hycapi_rx_capipkt(hysdn_card * card, uchar * buf, word len); 290 extern void hycapi_tx_capiack(hysdn_card * card); 291 extern struct sk_buff *hycapi_tx_capiget(hysdn_card *card);
··· 227 /*****************/ 228 /* exported vars */ 229 /*****************/ 230 extern hysdn_card *card_root; /* pointer to first card */ 231 232 ··· 244 /* hysdn_proclog.c */ 245 extern int hysdn_proclog_init(hysdn_card *); /* init proc log entry */ 246 extern void hysdn_proclog_release(hysdn_card *); /* deinit proc log entry */ 247 extern void hysdn_addlog(hysdn_card *, char *,...); /* output data to log */ 248 extern void hysdn_card_errlog(hysdn_card *, tErrLogEntry *, int); /* output card log */ 249 ··· 278 extern int hycapi_capi_create(hysdn_card *); /* create a new capi device */ 279 extern int hycapi_capi_release(hysdn_card *); /* delete the device */ 280 extern int hycapi_capi_stop(hysdn_card *card); /* suspend */ 281 extern void hycapi_rx_capipkt(hysdn_card * card, uchar * buf, word len); 282 extern void hycapi_tx_capiack(hysdn_card * card); 283 extern struct sk_buff *hycapi_tx_capiget(hysdn_card *card);
+1 -1
drivers/isdn/hysdn/hysdn_init.c
··· 34 MODULE_LICENSE("GPL"); 35 36 static char *hysdn_init_revision = "$Revision: 1.6.6.6 $"; 37 - int cardmax; /* number of found cards */ 38 hysdn_card *card_root = NULL; /* pointer to first card */ 39 40 /**********************************************/
··· 34 MODULE_LICENSE("GPL"); 35 36 static char *hysdn_init_revision = "$Revision: 1.6.6.6 $"; 37 + static int cardmax; /* number of found cards */ 38 hysdn_card *card_root = NULL; /* pointer to first card */ 39 40 /**********************************************/
+3 -1
drivers/isdn/hysdn/hysdn_proclog.c
··· 22 /* the proc subdir for the interface is defined in the procconf module */ 23 extern struct proc_dir_entry *hysdn_proc_entry; 24 25 /*************************************************/ 26 /* structure keeping ascii log for device output */ 27 /*************************************************/ ··· 95 /* opened for read got the contents. */ 96 /* Flushes buffers not longer in use. */ 97 /********************************************/ 98 - void 99 put_log_buffer(hysdn_card * card, char *cp) 100 { 101 struct log_data *ib;
··· 22 /* the proc subdir for the interface is defined in the procconf module */ 23 extern struct proc_dir_entry *hysdn_proc_entry; 24 25 + static void put_log_buffer(hysdn_card * card, char *cp); 26 + 27 /*************************************************/ 28 /* structure keeping ascii log for device output */ 29 /*************************************************/ ··· 93 /* opened for read got the contents. */ 94 /* Flushes buffers not longer in use. */ 95 /********************************************/ 96 + static void 97 put_log_buffer(hysdn_card * card, char *cp) 98 { 99 struct log_data *ib;