hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/pcmcia/cs_internal.h
....@@ -1,9 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * cs_internal.h -- definitions internal to the PCMCIA core modules
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
74 *
85 * The initial developer of the original code is David A. Hinds
96 * <dahinds@users.sourceforge.net>. Portions created by David A. Hinds
....@@ -11,7 +8,6 @@
118 *
129 * (C) 1999 David A. Hinds
1310 * (C) 2003 - 2010 Dominik Brodowski
14
- *
1511 *
1612 * This file contains definitions _only_ needed by the PCMCIA core modules.
1713 * It must not be included by PCMCIA socket drivers or by PCMCIA device
....@@ -44,7 +40,7 @@
4440 unsigned int addr;
4541 unsigned int len;
4642 unsigned int attr;
47
- unsigned char cache[0];
43
+ unsigned char cache[];
4844 };
4945
5046 struct pccard_resource_ops {
....@@ -167,12 +163,6 @@
167163 const u8 *data, const size_t len);
168164 int pccard_validate_cis(struct pcmcia_socket *s, unsigned int *count);
169165 int verify_cis_cache(struct pcmcia_socket *s);
170
-
171
-int pccard_loop_tuple(struct pcmcia_socket *s, unsigned int function,
172
- cisdata_t code, cisparse_t *parse, void *priv_data,
173
- int (*loop_tuple) (tuple_t *tuple,
174
- cisparse_t *parse,
175
- void *priv_data));
176166
177167 int pccard_get_first_tuple(struct pcmcia_socket *s, unsigned int function,
178168 tuple_t *tuple);