Skip to content

Commit 3818216

Browse files
committed
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
2 parents 7ac86b3 + e9d503f commit 3818216

File tree

5 files changed

+30
-32
lines changed

5 files changed

+30
-32
lines changed

drivers/pcmcia/cistpl.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void release_cis_mem(struct pcmcia_socket *s)
7575
mutex_unlock(&s->ops_mutex);
7676
}
7777

78-
/**
78+
/*
7979
* set_cis_map() - map the card memory at "card_offset" into virtual space.
8080
*
8181
* If flags & MAP_ATTRIB, map the attribute space, otherwise
@@ -126,7 +126,7 @@ static void __iomem *set_cis_map(struct pcmcia_socket *s,
126126
#define IS_ATTR 1
127127
#define IS_INDIRECT 8
128128

129-
/**
129+
/*
130130
* pcmcia_read_cis_mem() - low-level function to read CIS memory
131131
*
132132
* must be called with ops_mutex held
@@ -206,7 +206,7 @@ int pcmcia_read_cis_mem(struct pcmcia_socket *s, int attr, u_int addr,
206206
}
207207

208208

209-
/**
209+
/*
210210
* pcmcia_write_cis_mem() - low-level function to write CIS memory
211211
*
212212
* Probably only useful for writing one-byte registers. Must be called
@@ -277,7 +277,7 @@ int pcmcia_write_cis_mem(struct pcmcia_socket *s, int attr, u_int addr,
277277
}
278278

279279

280-
/**
280+
/*
281281
* read_cis_cache() - read CIS memory or its associated cache
282282
*
283283
* This is a wrapper around read_cis_mem, with the same interface,
@@ -365,7 +365,7 @@ void destroy_cis_cache(struct pcmcia_socket *s)
365365
}
366366
}
367367

368-
/**
368+
/*
369369
* verify_cis_cache() - does the CIS match what is in the CIS cache?
370370
*/
371371
int verify_cis_cache(struct pcmcia_socket *s)
@@ -401,7 +401,7 @@ int verify_cis_cache(struct pcmcia_socket *s)
401401
return 0;
402402
}
403403

404-
/**
404+
/*
405405
* pcmcia_replace_cis() - use a replacement CIS instead of the card's CIS
406406
*
407407
* For really bad cards, we provide a facility for uploading a

drivers/pcmcia/ds.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ struct pcmcia_dynid {
8383
};
8484

8585
/**
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
8787
* @driver: target device driver
8888
* @buf: buffer for scanning device ID data
8989
* @count: input size
@@ -371,9 +371,6 @@ static int pcmcia_device_remove(struct device *dev)
371371
pcmcia_card_remove(p_dev->socket, p_dev);
372372

373373
/* detach the "instance" */
374-
if (!p_drv)
375-
return 0;
376-
377374
if (p_drv->remove)
378375
p_drv->remove(p_dev);
379376

@@ -389,7 +386,7 @@ static int pcmcia_device_remove(struct device *dev)
389386
"pcmcia: driver %s did not release window properly\n",
390387
p_drv->name);
391388

392-
/* references from pcmcia_probe_device */
389+
/* references from pcmcia_device_probe */
393390
pcmcia_put_dev(p_dev);
394391
module_put(p_drv->owner);
395392

drivers/pcmcia/pcmcia_cis.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static int pccard_loop_tuple(struct pcmcia_socket *s, unsigned int function,
122122
}
123123

124124

125-
/**
125+
/*
126126
* pcmcia_io_cfg_data_width() - convert cfgtable to data path width parameter
127127
*/
128128
static int pcmcia_io_cfg_data_width(unsigned int flags)
@@ -143,7 +143,7 @@ struct pcmcia_cfg_mem {
143143
cistpl_cftable_entry_t dflt;
144144
};
145145

146-
/**
146+
/*
147147
* pcmcia_do_loop_config() - internal helper for pcmcia_loop_config()
148148
*
149149
* pcmcia_do_loop_config() is the internal callback for the call from
@@ -289,7 +289,7 @@ struct pcmcia_loop_mem {
289289
void *priv_data);
290290
};
291291

292-
/**
292+
/*
293293
* pcmcia_do_loop_tuple() - internal helper for pcmcia_loop_config()
294294
*
295295
* pcmcia_do_loop_tuple() is the internal callback for the call from
@@ -337,7 +337,7 @@ struct pcmcia_loop_get {
337337
cisdata_t **buf;
338338
};
339339

340-
/**
340+
/*
341341
* pcmcia_do_get_tuple() - internal helper for pcmcia_get_tuple()
342342
*
343343
* pcmcia_do_get_tuple() is the internal callback for the call from
@@ -386,7 +386,7 @@ size_t pcmcia_get_tuple(struct pcmcia_device *p_dev, cisdata_t code,
386386
EXPORT_SYMBOL(pcmcia_get_tuple);
387387

388388

389-
/**
389+
/*
390390
* pcmcia_do_get_mac() - internal helper for pcmcia_get_mac_from_cis()
391391
*
392392
* pcmcia_do_get_mac() is the internal callback for the call from

drivers/pcmcia/pcmcia_resource.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ static int alloc_io_space(struct pcmcia_socket *s, struct resource *res,
144144
}
145145

146146

147-
/**
147+
/*
148148
* pcmcia_access_config() - read or write card configuration registers
149149
*
150150
* pcmcia_access_config() reads and writes configuration registers in
@@ -184,7 +184,7 @@ static int pcmcia_access_config(struct pcmcia_device *p_dev,
184184
}
185185

186186

187-
/**
187+
/*
188188
* pcmcia_read_config_byte() - read a byte from a card configuration register
189189
*
190190
* pcmcia_read_config_byte() reads a byte from a configuration register in
@@ -197,7 +197,7 @@ int pcmcia_read_config_byte(struct pcmcia_device *p_dev, off_t where, u8 *val)
197197
EXPORT_SYMBOL(pcmcia_read_config_byte);
198198

199199

200-
/**
200+
/*
201201
* pcmcia_write_config_byte() - write a byte to a card configuration register
202202
*
203203
* pcmcia_write_config_byte() writes a byte to a configuration register in
@@ -720,7 +720,8 @@ static irqreturn_t test_action(int cpl, void *dev_id)
720720

721721
/**
722722
* 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)
724725
*
725726
* locking note: must be called with ops_mutex locked.
726727
*/
@@ -785,7 +786,7 @@ void pcmcia_cleanup_irq(struct pcmcia_socket *s)
785786

786787
/**
787788
* pcmcia_setup_irq() - determine IRQ to be used for device
788-
* @p_dev - the associated PCMCIA device
789+
* @p_dev: the associated PCMCIA device
789790
*
790791
* locking note: must be called with ops_mutex locked.
791792
*/

drivers/pcmcia/rsrc_nonstatic.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ static void do_io_probe(struct pcmcia_socket *s, unsigned int base,
257257

258258
/*======================================================================*/
259259

260-
/**
260+
/*
261261
* readable() - iomem validation function for cards with a valid CIS
262262
*/
263263
static int readable(struct pcmcia_socket *s, struct resource *res,
@@ -288,7 +288,7 @@ static int readable(struct pcmcia_socket *s, struct resource *res,
288288
return 0;
289289
}
290290

291-
/**
291+
/*
292292
* checksum() - iomem validation function for simple memory cards
293293
*/
294294
static int checksum(struct pcmcia_socket *s, struct resource *res,
@@ -343,9 +343,9 @@ static int checksum(struct pcmcia_socket *s, struct resource *res,
343343
*/
344344
static int do_validate_mem(struct pcmcia_socket *s,
345345
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))
349349
{
350350
struct socket_data *s_data = s->resource_data;
351351
struct resource *res1, *res2;
@@ -398,12 +398,12 @@ static int do_validate_mem(struct pcmcia_socket *s,
398398
* function returns the size of the usable memory area.
399399
*/
400400
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))
407407
{
408408
struct socket_data *s_data = s->resource_data;
409409
u_long i, j, bad, fail, step;

0 commit comments

Comments
 (0)