Use `struct comedi_kcmd` instead of `struct comedi_cmd`. Signed-off-by: Ian Abbott <abbotti@xxxxxxxxx> --- drivers/staging/comedi/drivers/me4000.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/staging/comedi/drivers/me4000.c b/drivers/staging/comedi/drivers/me4000.c index d7c5146..21c8c40 100644 --- a/drivers/staging/comedi/drivers/me4000.c +++ b/drivers/staging/comedi/drivers/me4000.c @@ -621,7 +621,8 @@ static int me4000_ai_cancel(struct comedi_device *dev, } static int ai_check_chanlist(struct comedi_device *dev, - struct comedi_subdevice *s, struct comedi_cmd *cmd) + struct comedi_subdevice *s, + struct comedi_kcmd *cmd) { const struct me4000_board *thisboard = comedi_board(dev); int aref; @@ -692,7 +693,7 @@ static int ai_check_chanlist(struct comedi_device *dev, static int ai_round_cmd_args(struct comedi_device *dev, struct comedi_subdevice *s, - struct comedi_cmd *cmd, + struct comedi_kcmd *cmd, unsigned int *init_ticks, unsigned int *scan_ticks, unsigned int *chan_ticks) { @@ -762,7 +763,8 @@ static void ai_write_timer(struct comedi_device *dev, } static int ai_write_chanlist(struct comedi_device *dev, - struct comedi_subdevice *s, struct comedi_cmd *cmd) + struct comedi_subdevice *s, + struct comedi_kcmd *cmd) { unsigned int entry; unsigned int chan; @@ -799,7 +801,7 @@ static int ai_write_chanlist(struct comedi_device *dev, static int ai_prepare(struct comedi_device *dev, struct comedi_subdevice *s, - struct comedi_cmd *cmd, + struct comedi_kcmd *cmd, unsigned int init_ticks, unsigned int scan_ticks, unsigned int chan_ticks) { @@ -871,7 +873,7 @@ static int me4000_ai_do_cmd(struct comedi_device *dev, unsigned int init_ticks = 0; unsigned int scan_ticks = 0; unsigned int chan_ticks = 0; - struct comedi_cmd *cmd = &s->async->cmd; + struct comedi_kcmd *cmd = &s->async->cmd; /* Reset the analog input */ err = me4000_ai_cancel(dev, s); @@ -909,7 +911,7 @@ static int me4000_ai_do_cmd(struct comedi_device *dev, */ static int me4000_ai_do_cmd_test(struct comedi_device *dev, struct comedi_subdevice *s, - struct comedi_cmd *cmd) + struct comedi_kcmd *cmd) { unsigned int init_ticks; -- 1.7.12 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel