tfmini remove obsolete IOCTLs

This commit is contained in:
Daniel Agar 2018-01-01 09:48:39 -05:00 committed by Lorenz Meier
parent 49bed47924
commit 9d61febd39
1 changed files with 0 additions and 15 deletions

View File

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