|
|
|
@ -451,25 +451,10 @@ TFMINI::ioctl(struct file *filp, int cmd, unsigned long arg)
@@ -451,25 +451,10 @@ TFMINI::ioctl(struct file *filp, int cmd, unsigned long arg)
|
|
|
|
|
return OK; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
case SENSORIOCGQUEUEDEPTH: |
|
|
|
|
return _reports->size(); |
|
|
|
|
|
|
|
|
|
case SENSORIOCRESET: |
|
|
|
|
/* XXX implement this */ |
|
|
|
|
return -EINVAL; |
|
|
|
|
|
|
|
|
|
case RANGEFINDERIOCSETMINIUMDISTANCE: { |
|
|
|
|
set_minimum_distance(*(float *)arg); |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case RANGEFINDERIOCSETMAXIUMDISTANCE: { |
|
|
|
|
set_maximum_distance(*(float *)arg); |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
default: |
|
|
|
|
/* give it to the superclass */ |
|
|
|
|
return CDev::ioctl(filp, cmd, arg); |
|
|
|
|