mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
4c89e88bfd
Instead of using own error or success codes, the PCMCIA code should rely on the generic return values. Therefore, replace all occurrences of CS_SUCCESS with 0. CC: netdev@vger.kernel.org Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
30 lines
1018 B
C
30 lines
1018 B
C
/* ds_internal.h - internal header for 16-bit PCMCIA devices management */
|
|
|
|
extern spinlock_t pcmcia_dev_list_lock;
|
|
extern struct bus_type pcmcia_bus_type;
|
|
|
|
extern struct pcmcia_device * pcmcia_get_dev(struct pcmcia_device *p_dev);
|
|
extern void pcmcia_put_dev(struct pcmcia_device *p_dev);
|
|
|
|
struct pcmcia_device * pcmcia_device_add(struct pcmcia_socket *s, unsigned int function);
|
|
|
|
extern int pcmcia_release_configuration(struct pcmcia_device *p_dev);
|
|
|
|
#ifdef CONFIG_PCMCIA_IOCTL
|
|
extern void __init pcmcia_setup_ioctl(void);
|
|
extern void __exit pcmcia_cleanup_ioctl(void);
|
|
extern void handle_event(struct pcmcia_socket *s, event_t event);
|
|
extern int handle_request(struct pcmcia_socket *s, event_t event);
|
|
#else
|
|
static inline void __init pcmcia_setup_ioctl(void) { return; }
|
|
static inline void __exit pcmcia_cleanup_ioctl(void) { return; }
|
|
static inline void handle_event(struct pcmcia_socket *s, event_t event)
|
|
{
|
|
return;
|
|
}
|
|
static inline int handle_request(struct pcmcia_socket *s, event_t event)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|