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_device_{attach,detach}

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.

Tidy up comedi_internal.h a bit so that all the internal stuff
in drivers.c is grouped.

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
39bd5e59 1ae6b20b

+9 -5
+9 -2
drivers/staging/comedi/comedi_internal.h
··· 8 8 */ 9 9 int do_rangeinfo_ioctl(struct comedi_device *dev, 10 10 struct comedi_rangeinfo __user *arg); 11 - int insn_inval(struct comedi_device *dev, struct comedi_subdevice *s, 12 - struct comedi_insn *insn, unsigned int *data); 13 11 int comedi_alloc_board_minor(struct device *hardware_device); 14 12 void comedi_free_board_minor(unsigned minor); 15 13 int comedi_find_board_minor(struct device *hardware_device); ··· 20 22 extern unsigned int comedi_default_buf_size_kb; 21 23 extern unsigned int comedi_default_buf_maxsize_kb; 22 24 extern bool comedi_autoconfig; 25 + 26 + /* drivers.c */ 27 + 23 28 extern struct comedi_driver *comedi_drivers; 29 + 30 + int insn_inval(struct comedi_device *, struct comedi_subdevice *, 31 + struct comedi_insn *, unsigned int *); 32 + 33 + void comedi_device_detach(struct comedi_device *); 34 + int comedi_device_attach(struct comedi_device *, struct comedi_devconfig *); 24 35 25 36 #endif /* _COMEDI_INTERNAL_H */
-3
drivers/staging/comedi/comedidev.h
··· 369 369 370 370 int comedi_alloc_subdevices(struct comedi_device *, int); 371 371 372 - void comedi_device_detach(struct comedi_device *); 373 - int comedi_device_attach(struct comedi_device *, struct comedi_devconfig *); 374 - 375 372 int comedi_auto_config(struct device *, struct comedi_driver *, 376 373 unsigned long context); 377 374 void comedi_auto_unconfig(struct device *);