Browse Source

delete unimplemented SENSORIOCRESET IOCTL

sbg
Daniel Agar 6 years ago committed by Lorenz Meier
parent
commit
7caf9803ed
  1. 4
      src/drivers/distance_sensor/hc_sr04/hc_sr04.cpp
  2. 4
      src/drivers/distance_sensor/mb12xx/mb12xx.cpp
  3. 4
      src/drivers/distance_sensor/sf0x/sf0x.cpp
  4. 4
      src/drivers/distance_sensor/sf1xx/sf1xx.cpp
  5. 4
      src/drivers/distance_sensor/srf02/srf02.cpp
  6. 4
      src/drivers/distance_sensor/teraranger/teraranger.cpp
  7. 4
      src/drivers/distance_sensor/tfmini/tfmini.cpp
  8. 4
      src/drivers/px4flow/px4flow.cpp
  9. 4
      src/lib/drivers/airspeed/airspeed.cpp
  10. 4
      src/modules/simulator/airspeedsim/airspeedsim.cpp

4
src/drivers/distance_sensor/hc_sr04/hc_sr04.cpp

@ -395,10 +395,6 @@ HC_SR04::ioctl(device::file_t *filp, int cmd, unsigned long arg) @@ -395,10 +395,6 @@ HC_SR04::ioctl(device::file_t *filp, int cmd, unsigned long arg)
}
}
case SENSORIOCRESET:
/* XXX implement this */
return -EINVAL;
default:
/* give it to the superclass */
return CDev::ioctl(filp, cmd, arg);

4
src/drivers/distance_sensor/mb12xx/mb12xx.cpp

@ -391,10 +391,6 @@ MB12XX::ioctl(device::file_t *filp, int cmd, unsigned long arg) @@ -391,10 +391,6 @@ MB12XX::ioctl(device::file_t *filp, int cmd, unsigned long arg)
}
}
case SENSORIOCRESET:
/* XXX implement this */
return -EINVAL;
default:
/* give it to the superclass */
return I2C::ioctl(filp, cmd, arg);

4
src/drivers/distance_sensor/sf0x/sf0x.cpp

@ -372,10 +372,6 @@ SF0X::ioctl(device::file_t *filp, int cmd, unsigned long arg) @@ -372,10 +372,6 @@ SF0X::ioctl(device::file_t *filp, int cmd, unsigned long arg)
}
}
case SENSORIOCRESET:
/* XXX implement this */
return -EINVAL;
default:
/* give it to the superclass */
return CDev::ioctl(filp, cmd, arg);

4
src/drivers/distance_sensor/sf1xx/sf1xx.cpp

@ -391,10 +391,6 @@ SF1XX::ioctl(device::file_t *filp, int cmd, unsigned long arg) @@ -391,10 +391,6 @@ SF1XX::ioctl(device::file_t *filp, int cmd, unsigned long arg)
}
}
case SENSORIOCRESET:
/* XXX implement this */
return -EINVAL;
default:
/* give it to the superclass */
return I2C::ioctl(filp, cmd, arg);

4
src/drivers/distance_sensor/srf02/srf02.cpp

@ -391,10 +391,6 @@ SRF02::ioctl(device::file_t *filp, int cmd, unsigned long arg) @@ -391,10 +391,6 @@ SRF02::ioctl(device::file_t *filp, int cmd, unsigned long arg)
}
}
case SENSORIOCRESET:
/* XXX implement this */
return -EINVAL;
default:
/* give it to the superclass */
return I2C::ioctl(filp, cmd, arg);

4
src/drivers/distance_sensor/teraranger/teraranger.cpp

@ -469,10 +469,6 @@ TERARANGER::ioctl(device::file_t *filp, int cmd, unsigned long arg) @@ -469,10 +469,6 @@ TERARANGER::ioctl(device::file_t *filp, int cmd, unsigned long arg)
}
}
case SENSORIOCRESET:
/* XXX implement this */
return -EINVAL;
default:
/* give it to the superclass */
return I2C::ioctl(filp, cmd, arg);

4
src/drivers/distance_sensor/tfmini/tfmini.cpp

@ -409,10 +409,6 @@ TFMINI::ioctl(device::file_t *filp, int cmd, unsigned long arg) @@ -409,10 +409,6 @@ TFMINI::ioctl(device::file_t *filp, int cmd, unsigned long arg)
}
}
case SENSORIOCRESET:
/* XXX implement this */
return -EINVAL;
default:
/* give it to the superclass */
return CDev::ioctl(filp, cmd, arg);

4
src/drivers/px4flow/px4flow.cpp

@ -381,10 +381,6 @@ PX4FLOW::ioctl(struct file *filp, int cmd, unsigned long arg) @@ -381,10 +381,6 @@ PX4FLOW::ioctl(struct file *filp, int cmd, unsigned long arg)
}
}
case SENSORIOCRESET:
/* XXX implement this */
return -EINVAL;
default:
/* give it to the superclass */
return I2C::ioctl(filp, cmd, arg);

4
src/lib/drivers/airspeed/airspeed.cpp

@ -188,10 +188,6 @@ Airspeed::ioctl(device::file_t *filp, int cmd, unsigned long arg) @@ -188,10 +188,6 @@ Airspeed::ioctl(device::file_t *filp, int cmd, unsigned long arg)
}
break;
case SENSORIOCRESET:
/* XXX implement this */
return -EINVAL;
case AIRSPEEDIOCSSCALE: {
struct airspeed_scale *s = (struct airspeed_scale *)arg;
_diff_pres_offset = s->offset_pa;

4
src/modules/simulator/airspeedsim/airspeedsim.cpp

@ -216,10 +216,6 @@ AirspeedSim::ioctl(cdev::file_t *filp, int cmd, unsigned long arg) @@ -216,10 +216,6 @@ AirspeedSim::ioctl(cdev::file_t *filp, int cmd, unsigned long arg)
}
}
case SENSORIOCRESET:
/* XXX implement this */
return -EINVAL;
case AIRSPEEDIOCSSCALE: {
struct airspeed_scale *s = (struct airspeed_scale *)arg;
_diff_pres_offset = s->offset_pa;

Loading…
Cancel
Save