Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'pcmcia-next' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/linux

Pull pcmcia updates from Dominik Brodowski:
"A number of patches fixing W=1 kernel build warnings, and one patch
removing an always-false NULL check"

* 'pcmcia-next' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/linux:
pcmcia: rsrc_nonstatic: Fix call-back function as reference formatting
pcmcia: pcmcia_resource: Fix some kernel-doc formatting/disparities and demote others
pcmcia: ds: Fix function name disparity in header
pcmcia: pcmcia_cis: Demote non-conforming kernel-doc headers to standard kernel-doc
pcmcia: cistpl: Demote non-conformant kernel-doc headers to standard comments
pcmcia: rsrc_nonstatic: Demote kernel-doc abuses
pcmcia: ds: Remove if with always false condition

+30 -32
+6 -6
drivers/pcmcia/cistpl.c
··· 75 75 mutex_unlock(&s->ops_mutex); 76 76 } 77 77 78 - /** 78 + /* 79 79 * set_cis_map() - map the card memory at "card_offset" into virtual space. 80 80 * 81 81 * If flags & MAP_ATTRIB, map the attribute space, otherwise ··· 126 126 #define IS_ATTR 1 127 127 #define IS_INDIRECT 8 128 128 129 - /** 129 + /* 130 130 * pcmcia_read_cis_mem() - low-level function to read CIS memory 131 131 * 132 132 * must be called with ops_mutex held ··· 206 206 } 207 207 208 208 209 - /** 209 + /* 210 210 * pcmcia_write_cis_mem() - low-level function to write CIS memory 211 211 * 212 212 * Probably only useful for writing one-byte registers. Must be called ··· 277 277 } 278 278 279 279 280 - /** 280 + /* 281 281 * read_cis_cache() - read CIS memory or its associated cache 282 282 * 283 283 * This is a wrapper around read_cis_mem, with the same interface, ··· 365 365 } 366 366 } 367 367 368 - /** 368 + /* 369 369 * verify_cis_cache() - does the CIS match what is in the CIS cache? 370 370 */ 371 371 int verify_cis_cache(struct pcmcia_socket *s) ··· 401 401 return 0; 402 402 } 403 403 404 - /** 404 + /* 405 405 * pcmcia_replace_cis() - use a replacement CIS instead of the card's CIS 406 406 * 407 407 * For really bad cards, we provide a facility for uploading a
+2 -5
drivers/pcmcia/ds.c
··· 83 83 }; 84 84 85 85 /** 86 - * pcmcia_store_new_id - add a new PCMCIA device ID to this driver and re-probe devices 86 + * new_id_store() - add a new PCMCIA device ID to this driver and re-probe devices 87 87 * @driver: target device driver 88 88 * @buf: buffer for scanning device ID data 89 89 * @count: input size ··· 371 371 pcmcia_card_remove(p_dev->socket, p_dev); 372 372 373 373 /* detach the "instance" */ 374 - if (!p_drv) 375 - return 0; 376 - 377 374 if (p_drv->remove) 378 375 p_drv->remove(p_dev); 379 376 ··· 386 389 "pcmcia: driver %s did not release window properly\n", 387 390 p_drv->name); 388 391 389 - /* references from pcmcia_probe_device */ 392 + /* references from pcmcia_device_probe */ 390 393 pcmcia_put_dev(p_dev); 391 394 module_put(p_drv->owner); 392 395
+5 -5
drivers/pcmcia/pcmcia_cis.c
··· 122 122 } 123 123 124 124 125 - /** 125 + /* 126 126 * pcmcia_io_cfg_data_width() - convert cfgtable to data path width parameter 127 127 */ 128 128 static int pcmcia_io_cfg_data_width(unsigned int flags) ··· 143 143 cistpl_cftable_entry_t dflt; 144 144 }; 145 145 146 - /** 146 + /* 147 147 * pcmcia_do_loop_config() - internal helper for pcmcia_loop_config() 148 148 * 149 149 * pcmcia_do_loop_config() is the internal callback for the call from ··· 289 289 void *priv_data); 290 290 }; 291 291 292 - /** 292 + /* 293 293 * pcmcia_do_loop_tuple() - internal helper for pcmcia_loop_config() 294 294 * 295 295 * pcmcia_do_loop_tuple() is the internal callback for the call from ··· 337 337 cisdata_t **buf; 338 338 }; 339 339 340 - /** 340 + /* 341 341 * pcmcia_do_get_tuple() - internal helper for pcmcia_get_tuple() 342 342 * 343 343 * pcmcia_do_get_tuple() is the internal callback for the call from ··· 386 386 EXPORT_SYMBOL(pcmcia_get_tuple); 387 387 388 388 389 - /** 389 + /* 390 390 * pcmcia_do_get_mac() - internal helper for pcmcia_get_mac_from_cis() 391 391 * 392 392 * pcmcia_do_get_mac() is the internal callback for the call from
+6 -5
drivers/pcmcia/pcmcia_resource.c
··· 144 144 } 145 145 146 146 147 - /** 147 + /* 148 148 * pcmcia_access_config() - read or write card configuration registers 149 149 * 150 150 * pcmcia_access_config() reads and writes configuration registers in ··· 184 184 } 185 185 186 186 187 - /** 187 + /* 188 188 * pcmcia_read_config_byte() - read a byte from a card configuration register 189 189 * 190 190 * pcmcia_read_config_byte() reads a byte from a configuration register in ··· 197 197 EXPORT_SYMBOL(pcmcia_read_config_byte); 198 198 199 199 200 - /** 200 + /* 201 201 * pcmcia_write_config_byte() - write a byte to a card configuration register 202 202 * 203 203 * pcmcia_write_config_byte() writes a byte to a configuration register in ··· 720 720 721 721 /** 722 722 * pcmcia_setup_isa_irq() - determine whether an ISA IRQ can be used 723 - * @p_dev - the associated PCMCIA device 723 + * @p_dev: the associated PCMCIA device 724 + * @type: IRQ type (flags) 724 725 * 725 726 * locking note: must be called with ops_mutex locked. 726 727 */ ··· 786 785 787 786 /** 788 787 * pcmcia_setup_irq() - determine IRQ to be used for device 789 - * @p_dev - the associated PCMCIA device 788 + * @p_dev: the associated PCMCIA device 790 789 * 791 790 * locking note: must be called with ops_mutex locked. 792 791 */
+11 -11
drivers/pcmcia/rsrc_nonstatic.c
··· 257 257 258 258 /*======================================================================*/ 259 259 260 - /** 260 + /* 261 261 * readable() - iomem validation function for cards with a valid CIS 262 262 */ 263 263 static int readable(struct pcmcia_socket *s, struct resource *res, ··· 288 288 return 0; 289 289 } 290 290 291 - /** 291 + /* 292 292 * checksum() - iomem validation function for simple memory cards 293 293 */ 294 294 static int checksum(struct pcmcia_socket *s, struct resource *res, ··· 343 343 */ 344 344 static int do_validate_mem(struct pcmcia_socket *s, 345 345 unsigned long base, unsigned long size, 346 - int validate (struct pcmcia_socket *s, 347 - struct resource *res, 348 - unsigned int *value)) 346 + int (*validate)(struct pcmcia_socket *s, 347 + struct resource *res, 348 + unsigned int *value)) 349 349 { 350 350 struct socket_data *s_data = s->resource_data; 351 351 struct resource *res1, *res2; ··· 398 398 * function returns the size of the usable memory area. 399 399 */ 400 400 static int do_mem_probe(struct pcmcia_socket *s, u_long base, u_long num, 401 - int validate (struct pcmcia_socket *s, 402 - struct resource *res, 403 - unsigned int *value), 404 - int fallback (struct pcmcia_socket *s, 405 - struct resource *res, 406 - unsigned int *value)) 401 + int (*validate)(struct pcmcia_socket *s, 402 + struct resource *res, 403 + unsigned int *value), 404 + int (*fallback)(struct pcmcia_socket *s, 405 + struct resource *res, 406 + unsigned int *value)) 407 407 { 408 408 struct socket_data *s_data = s->resource_data; 409 409 u_long i, j, bad, fail, step;