mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
Staging: comedi: clean up comedilib.h
Remove a whole #ifdef section that is not needed anymore. Cc: Ian Abbott <abbotti@mev.co.uk> Cc: Frank Mori Hess <fmhess@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
7382e5711f
commit
703f5936e2
1 changed files with 0 additions and 82 deletions
|
@ -26,16 +26,6 @@
|
|||
|
||||
#include "comedi.h"
|
||||
|
||||
/* Kernel internal stuff. Needed by real-time modules and such. */
|
||||
|
||||
#ifndef __KERNEL__
|
||||
#error linux/comedilib.h should not be included by non-kernel-space code
|
||||
#endif
|
||||
|
||||
/* exported functions */
|
||||
|
||||
#ifndef KCOMEDILIB_DEPRECATED
|
||||
|
||||
/* these functions may not be called at real-time priority */
|
||||
|
||||
void *comedi_open(const char *path);
|
||||
|
@ -117,77 +107,5 @@ int comedi_mark_buffer_written(void *d, unsigned int subdevice,
|
|||
int comedi_get_buffer_contents(void *dev, unsigned int subdevice);
|
||||
int comedi_get_buffer_offset(void *dev, unsigned int subdevice);
|
||||
|
||||
#else
|
||||
|
||||
/* these functions may not be called at real-time priority */
|
||||
|
||||
int comedi_open(unsigned int minor);
|
||||
void comedi_close(unsigned int minor);
|
||||
|
||||
/* these functions may be called at any priority, but may fail at
|
||||
real-time priority */
|
||||
|
||||
int comedi_lock(unsigned int minor, unsigned int subdev);
|
||||
int comedi_unlock(unsigned int minor, unsigned int subdev);
|
||||
|
||||
/* these functions may be called at any priority, but you must hold
|
||||
the lock for the subdevice */
|
||||
|
||||
int comedi_cancel(unsigned int minor, unsigned int subdev);
|
||||
int comedi_register_callback(unsigned int minor, unsigned int subdev,
|
||||
unsigned int mask, int (*cb) (unsigned int,
|
||||
void *), void *arg);
|
||||
|
||||
int comedi_command(unsigned int minor, struct comedi_cmd *cmd);
|
||||
int comedi_command_test(unsigned int minor, struct comedi_cmd *cmd);
|
||||
int comedi_trigger(unsigned int minor, unsigned int subdev,
|
||||
struct comedi_trig *it);
|
||||
int __comedi_trigger(unsigned int minor, unsigned int subdev,
|
||||
struct comedi_trig *it);
|
||||
int comedi_data_write(unsigned int dev, unsigned int subdev, unsigned int chan,
|
||||
unsigned int range, unsigned int aref, unsigned int data);
|
||||
int comedi_data_read(unsigned int dev, unsigned int subdev, unsigned int chan,
|
||||
unsigned int range, unsigned int aref, unsigned int *data);
|
||||
int comedi_dio_config(unsigned int dev, unsigned int subdev, unsigned int chan,
|
||||
unsigned int io);
|
||||
int comedi_dio_read(unsigned int dev, unsigned int subdev, unsigned int chan,
|
||||
unsigned int *val);
|
||||
int comedi_dio_write(unsigned int dev, unsigned int subdev, unsigned int chan,
|
||||
unsigned int val);
|
||||
int comedi_dio_bitfield(unsigned int dev, unsigned int subdev,
|
||||
unsigned int mask, unsigned int *bits);
|
||||
int comedi_get_n_subdevices(unsigned int dev);
|
||||
int comedi_get_version_code(unsigned int dev);
|
||||
char *comedi_get_driver_name(unsigned int dev);
|
||||
char *comedi_get_board_name(unsigned int minor);
|
||||
int comedi_get_subdevice_type(unsigned int minor, unsigned int subdevice);
|
||||
int comedi_find_subdevice_by_type(unsigned int minor, int type,
|
||||
unsigned int subd);
|
||||
int comedi_get_n_channels(unsigned int minor, unsigned int subdevice);
|
||||
unsigned int comedi_get_maxdata(unsigned int minor, unsigned int subdevice,
|
||||
unsigned int chan);
|
||||
int comedi_get_n_ranges(unsigned int minor, unsigned int subdevice,
|
||||
unsigned int chan);
|
||||
int comedi_do_insn(unsigned int minor, struct comedi_insn *insn);
|
||||
int comedi_poll(unsigned int minor, unsigned int subdev);
|
||||
|
||||
/* DEPRECATED functions */
|
||||
int comedi_get_rangetype(unsigned int minor, unsigned int subdevice,
|
||||
unsigned int chan);
|
||||
|
||||
/* ALPHA functions */
|
||||
unsigned int comedi_get_subdevice_flags(unsigned int minor, unsigned int
|
||||
subdevice);
|
||||
int comedi_get_len_chanlist(unsigned int minor, unsigned int subdevice);
|
||||
int comedi_get_krange(unsigned int minor, unsigned int subdevice, unsigned int
|
||||
chan, unsigned int range, struct comedi_krange *krange);
|
||||
unsigned int comedi_get_buf_head_pos(unsigned int minor, unsigned int
|
||||
subdevice);
|
||||
int comedi_set_user_int_count(unsigned int minor, unsigned int subdevice,
|
||||
unsigned int buf_user_count);
|
||||
int comedi_map(unsigned int minor, unsigned int subdev, void **ptr);
|
||||
int comedi_unmap(unsigned int minor, unsigned int subdev);
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue