mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-24 20:20:48 +07:00
staging: comedi: don't expose comedi_proc_{init,cleanup}
These functions are only used by the comedi core. Move the prototypes to comedi_internal.h so they are not exposed to the comedi drivers. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
39bd5e59b1
commit
085494ac20
@ -31,4 +31,19 @@ int insn_inval(struct comedi_device *, struct comedi_subdevice *,
|
|||||||
void comedi_device_detach(struct comedi_device *);
|
void comedi_device_detach(struct comedi_device *);
|
||||||
int comedi_device_attach(struct comedi_device *, struct comedi_devconfig *);
|
int comedi_device_attach(struct comedi_device *, struct comedi_devconfig *);
|
||||||
|
|
||||||
|
#ifdef CONFIG_PROC_FS
|
||||||
|
|
||||||
|
/* proc.c */
|
||||||
|
|
||||||
|
void comedi_proc_init(void);
|
||||||
|
void comedi_proc_cleanup(void);
|
||||||
|
#else
|
||||||
|
static inline void comedi_proc_init(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
static inline void comedi_proc_cleanup(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _COMEDI_INTERNAL_H */
|
#endif /* _COMEDI_INTERNAL_H */
|
||||||
|
@ -263,19 +263,6 @@ void cleanup_polling(void);
|
|||||||
void start_polling(struct comedi_device *);
|
void start_polling(struct comedi_device *);
|
||||||
void stop_polling(struct comedi_device *);
|
void stop_polling(struct comedi_device *);
|
||||||
|
|
||||||
#ifdef CONFIG_PROC_FS
|
|
||||||
void comedi_proc_init(void);
|
|
||||||
void comedi_proc_cleanup(void);
|
|
||||||
#else
|
|
||||||
static inline void comedi_proc_init(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void comedi_proc_cleanup(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* subdevice runflags */
|
/* subdevice runflags */
|
||||||
enum subdevice_runflags {
|
enum subdevice_runflags {
|
||||||
SRF_USER = 0x00000001,
|
SRF_USER = 0x00000001,
|
||||||
|
Loading…
Reference in New Issue
Block a user