From ff6928fb631950d4883dc1a531a6fa0708c7f7ae Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Thu, 14 Dec 2017 12:00:14 -0500 Subject: [PATCH] delete unused GPIO_GET --- src/drivers/drv_gpio.h | 3 --- src/drivers/px4fmu/fmu.cpp | 4 ---- src/drivers/px4io/px4io.cpp | 4 ---- 3 files changed, 11 deletions(-) diff --git a/src/drivers/drv_gpio.h b/src/drivers/drv_gpio.h index c7f5ee116b..7d3a4941d8 100644 --- a/src/drivers/drv_gpio.h +++ b/src/drivers/drv_gpio.h @@ -89,9 +89,6 @@ /** clear the GPIOs in (arg) */ #define GPIO_CLEAR GPIOC(11) -/** read all the GPIOs and return their values in *(uint32_t *)arg */ -#define GPIO_GET GPIOC(12) - #define GPIO_SENSOR_RAIL_RESET GPIOC(13) #define GPIO_PERIPHERAL_RAIL_RESET GPIOC(14) diff --git a/src/drivers/px4fmu/fmu.cpp b/src/drivers/px4fmu/fmu.cpp index 07a640fb7f..e9572c5353 100644 --- a/src/drivers/px4fmu/fmu.cpp +++ b/src/drivers/px4fmu/fmu.cpp @@ -2928,10 +2928,6 @@ PX4FMU::gpio_ioctl(struct file *filp, int cmd, unsigned long arg) ret = gpio_write(arg, cmd); break; - case GPIO_GET: - ret = gpio_read((uint32_t *)arg); - break; - default: ret = -ENOTTY; } diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index 2b46bbb063..e8e6ce6595 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -2746,10 +2746,6 @@ PX4IO::ioctl(file *filep, int cmd, unsigned long arg) ret = -EINVAL; break; - case GPIO_GET: - ret = -EINVAL; - break; - case MIXERIOCGETOUTPUTCOUNT: *(unsigned *)arg = _max_actuators; break;