gpio: Remove obsolete API 1.0 callback mechanism
In 1.0 you could set only one callback on the whole gpio controller. It was impossible for another sub-system to add another callback, without overwritting an existing one. Such API has been obsolete for a long time and no one is using it anymore. Thus removing it entirely. Change-Id: I6a17fd99373dc6cef1fa2ebb421e992412d5015e Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
7e6dacd65f
commit
a6cf6038e3
16 changed files with 3 additions and 275 deletions
|
@ -31,7 +31,6 @@
|
|||
|
||||
#include "gpio_k64.h"
|
||||
#include "gpio_utils.h"
|
||||
#include "gpio_api_compat.h"
|
||||
|
||||
static int gpio_k64_config(struct device *dev,
|
||||
int access_op, uint32_t pin, int flags)
|
||||
|
@ -202,10 +201,8 @@ static int gpio_k64_enable_callback(struct device *dev,
|
|||
struct gpio_k64_data *data = dev->driver_data;
|
||||
|
||||
if (access_op == GPIO_ACCESS_BY_PIN) {
|
||||
_gpio_enable_callback(dev, BIT(pin));
|
||||
data->pin_callback_enables |= BIT(pin);
|
||||
} else {
|
||||
_gpio_enable_callback(dev, 0xFFFFFFFF);
|
||||
data->pin_callback_enables = 0xFFFFFFFF;
|
||||
}
|
||||
|
||||
|
@ -219,10 +216,8 @@ static int gpio_k64_disable_callback(struct device *dev,
|
|||
struct gpio_k64_data *data = dev->driver_data;
|
||||
|
||||
if (access_op == GPIO_ACCESS_BY_PIN) {
|
||||
_gpio_disable_callback(dev, BIT(pin));
|
||||
data->pin_callback_enables &= ~BIT(pin);
|
||||
} else {
|
||||
_gpio_disable_callback(dev, 0xFFFFFFFF);
|
||||
data->pin_callback_enables = 0;
|
||||
}
|
||||
|
||||
|
@ -282,7 +277,6 @@ DEVICE_AND_API_INIT(gpio_k64_A, CONFIG_GPIO_K64_A_DEV_NAME, gpio_k64_A_init,
|
|||
&gpio_data_A, &gpio_k64_A_cfg,
|
||||
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&gpio_k64_drv_api_funcs);
|
||||
GPIO_SETUP_COMPAT_DEV(gpio_k64_A);
|
||||
|
||||
static int gpio_k64_A_init(struct device *dev)
|
||||
{
|
||||
|
@ -312,7 +306,6 @@ DEVICE_AND_API_INIT(gpio_k64_B, CONFIG_GPIO_K64_B_DEV_NAME, gpio_k64_B_init,
|
|||
&gpio_data_B, &gpio_k64_B_cfg,
|
||||
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&gpio_k64_drv_api_funcs);
|
||||
GPIO_SETUP_COMPAT_DEV(gpio_k64_B);
|
||||
|
||||
static int gpio_k64_B_init(struct device *dev)
|
||||
{
|
||||
|
@ -342,7 +335,6 @@ DEVICE_AND_API_INIT(gpio_k64_C, CONFIG_GPIO_K64_C_DEV_NAME, gpio_k64_C_init,
|
|||
&gpio_data_C, &gpio_k64_C_cfg,
|
||||
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&gpio_k64_drv_api_funcs);
|
||||
GPIO_SETUP_COMPAT_DEV(gpio_k64_C);
|
||||
|
||||
static int gpio_k64_C_init(struct device *dev)
|
||||
{
|
||||
|
@ -372,7 +364,6 @@ DEVICE_AND_API_INIT(gpio_k64_D, CONFIG_GPIO_K64_D_DEV_NAME, gpio_k64_D_init,
|
|||
&gpio_data_D, &gpio_k64_D_cfg,
|
||||
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&gpio_k64_drv_api_funcs);
|
||||
GPIO_SETUP_COMPAT_DEV(gpio_k64_D);
|
||||
|
||||
static int gpio_k64_D_init(struct device *dev)
|
||||
{
|
||||
|
@ -402,7 +393,6 @@ DEVICE_AND_API_INIT(gpio_k64_E, CONFIG_GPIO_K64_E_DEV_NAME, gpio_k64_E_init,
|
|||
&gpio_data_E, &gpio_k64_E_cfg,
|
||||
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&gpio_k64_drv_api_funcs);
|
||||
GPIO_SETUP_COMPAT_DEV(gpio_k64_E);
|
||||
|
||||
static int gpio_k64_E_init(struct device *dev)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue