The async event defines, COMEDI_CB_*, are only used in the kernel. They should not be exposed to userspace in the comedi.h uapi header. Move the defines to the comedidev.h kernel header and tidy up the documentation. Also, introduce some mask defines to clarify the events that indicate error conditions and that cancel an async command. H Hartley Sweeten (2): staging: comedi: comedidev.h: don't expose COMEDI_CB_* defines to userspace staging: comedi: comedidev.h: clarify async->event error/cancel detection drivers/staging/comedi/comedi.h | 11 ----------- drivers/staging/comedi/comedi_fops.c | 18 ++++++++---------- drivers/staging/comedi/comedidev.h | 22 ++++++++++++++++++++++ drivers/staging/comedi/drivers.c | 2 +- drivers/staging/comedi/drivers/amplc_pci230.c | 10 ++-------- 5 files changed, 33 insertions(+), 30 deletions(-) -- 2.0.3 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel