Skip to content

Commit b60a5ed

Browse files
author
Dominik Brodowski
committed
pcmcia: merge ds_internal.h into cs_internal.h
Merge ds_internal.c into cs_internal.h. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
1 parent dc953e5 commit b60a5ed

5 files changed

Lines changed: 40 additions & 32 deletions

File tree

‎drivers/pcmcia/cs_internal.h‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,44 @@ struct resource *pcmcia_find_mem_region(u_long base,
177177
int low,
178178
struct pcmcia_socket *s);
179179

180+
/*
181+
* Stuff internal to module "pcmcia".
182+
*/
183+
/* ds.c */
184+
extern struct bus_type pcmcia_bus_type;
185+
186+
/* pcmcia_resource.c */
187+
extern int pcmcia_release_configuration(struct pcmcia_device *p_dev);
188+
189+
#ifdef CONFIG_PCMCIA_IOCTL
190+
/* ds.c */
191+
extern spinlock_t pcmcia_dev_list_lock;
192+
193+
extern struct pcmcia_device *pcmcia_get_dev(struct pcmcia_device *p_dev);
194+
extern void pcmcia_put_dev(struct pcmcia_device *p_dev);
195+
196+
struct pcmcia_device *pcmcia_device_add(struct pcmcia_socket *s,
197+
unsigned int function);
198+
199+
/* pcmcia_ioctl.c */
200+
extern void __init pcmcia_setup_ioctl(void);
201+
extern void __exit pcmcia_cleanup_ioctl(void);
202+
extern void handle_event(struct pcmcia_socket *s, event_t event);
203+
extern int handle_request(struct pcmcia_socket *s, event_t event);
204+
205+
#else /* CONFIG_PCMCIA_IOCTL */
206+
207+
static inline void __init pcmcia_setup_ioctl(void) { return; }
208+
static inline void __exit pcmcia_cleanup_ioctl(void) { return; }
209+
static inline void handle_event(struct pcmcia_socket *s, event_t event)
210+
{
211+
return;
212+
}
213+
static inline int handle_request(struct pcmcia_socket *s, event_t event)
214+
{
215+
return 0;
216+
}
217+
218+
#endif /* CONFIG_PCMCIA_IOCTL */
219+
180220
#endif /* _LINUX_CS_INTERNAL_H */

‎drivers/pcmcia/ds.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include <pcmcia/ss.h>
3333

3434
#include "cs_internal.h"
35-
#include "ds_internal.h"
3635

3736
/*====================================================================*/
3837

‎drivers/pcmcia/ds_internal.h‎

Lines changed: 0 additions & 29 deletions
This file was deleted.

‎drivers/pcmcia/pcmcia_ioctl.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
#include <pcmcia/ss.h>
3939

4040
#include "cs_internal.h"
41-
#include "ds_internal.h"
4241

4342
static int major_dev = -1;
4443

‎drivers/pcmcia/pcmcia_resource.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#include <pcmcia/ds.h>
3030

3131
#include "cs_internal.h"
32-
#include "ds_internal.h"
3332

3433

3534
/* Access speed for IO windows */

0 commit comments

Comments
 (0)