Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

H Hartley Sweeten and committed by
Greg Kroah-Hartman
085494ac 39bd5e59

+15 -13
+15
drivers/staging/comedi/comedi_internal.h
··· 31 31 void comedi_device_detach(struct comedi_device *); 32 32 int comedi_device_attach(struct comedi_device *, struct comedi_devconfig *); 33 33 34 + #ifdef CONFIG_PROC_FS 35 + 36 + /* proc.c */ 37 + 38 + void comedi_proc_init(void); 39 + void comedi_proc_cleanup(void); 40 + #else 41 + static inline void comedi_proc_init(void) 42 + { 43 + } 44 + static inline void comedi_proc_cleanup(void) 45 + { 46 + } 47 + #endif 48 + 34 49 #endif /* _COMEDI_INTERNAL_H */
-13
drivers/staging/comedi/comedidev.h
··· 263 263 void start_polling(struct comedi_device *); 264 264 void stop_polling(struct comedi_device *); 265 265 266 - #ifdef CONFIG_PROC_FS 267 - void comedi_proc_init(void); 268 - void comedi_proc_cleanup(void); 269 - #else 270 - static inline void comedi_proc_init(void) 271 - { 272 - } 273 - 274 - static inline void comedi_proc_cleanup(void) 275 - { 276 - } 277 - #endif 278 - 279 266 /* subdevice runflags */ 280 267 enum subdevice_runflags { 281 268 SRF_USER = 0x00000001,