drv_mixer.h - delete unused MIXERIOCGETOUTPUTCOUNT

This commit is contained in:
Daniel Agar 2019-11-20 22:39:20 -05:00
parent a255789be4
commit c8211dee28
7 changed files with 1 additions and 14 deletions

View File

@ -65,8 +65,7 @@
#define _MIXERIOCBASE (0x2500)
#define _MIXERIOC(_n) (_PX4_IOC(_MIXERIOCBASE, _n))
/** get the number of mixable outputs */
#define MIXERIOCGETOUTPUTCOUNT _MIXERIOC(0)
/* _MIXERIOC(0) was deprecated */
/** reset (clear) the mixer configuration */
#define MIXERIOCRESET _MIXERIOC(1)

View File

@ -877,7 +877,6 @@ DShotOutput::pwm_ioctl(file *filp, int cmd, unsigned long arg)
switch (cmd) {
case PWM_SERVO_GET_COUNT:
case MIXERIOCGETOUTPUTCOUNT:
switch (_mode) {
#if defined(BOARD_HAS_PWM) && BOARD_HAS_PWM >= 14

View File

@ -1028,7 +1028,6 @@ MK::pwm_ioctl(file *filp, int cmd, unsigned long arg)
break;
case PWM_SERVO_GET_COUNT:
case MIXERIOCGETOUTPUTCOUNT:
*(unsigned *)arg = _num_outputs;
break;

View File

@ -207,7 +207,6 @@ PWMSim::ioctl(device::file_t *filp, int cmd, unsigned long arg)
}
case PWM_SERVO_GET_COUNT:
case MIXERIOCGETOUTPUTCOUNT:
*(unsigned *)arg = OutputModuleInterface::MAX_ACTUATORS;
break;

View File

@ -1277,7 +1277,6 @@ PX4FMU::pwm_ioctl(file *filp, int cmd, unsigned long arg)
break;
case PWM_SERVO_GET_COUNT:
case MIXERIOCGETOUTPUTCOUNT:
switch (_mode) {
#if defined(BOARD_HAS_PWM) && BOARD_HAS_PWM >= 14

View File

@ -2810,10 +2810,6 @@ PX4IO::ioctl(file *filep, int cmd, unsigned long arg)
}
break;
case MIXERIOCGETOUTPUTCOUNT:
*(unsigned *)arg = _max_actuators;
break;
case MIXERIOCRESET:
ret = 0; /* load always resets */
break;

View File

@ -828,10 +828,6 @@ UavcanNode::ioctl(file *filp, int cmd, unsigned long arg)
// these are no-ops, as no safety switch
break;
case MIXERIOCGETOUTPUTCOUNT:
*(unsigned *)arg = _output_count;
break;
case MIXERIOCRESET:
_mixing_interface.mixingOutput().resetMixerThreadSafe();