gpio: remove deprecated API functions/macros
This commit removes API functions and macros which were deprecated in 2.2 release. GPIO drivers are updated accordingly. Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
This commit is contained in:
parent
c48206d5ee
commit
4b194eb4fc
27 changed files with 37 additions and 1129 deletions
|
@ -282,28 +282,6 @@ static int gpio_sam_manage_callback(struct device *port,
|
|||
return gpio_manage_callback(&context->cb, callback, set);
|
||||
}
|
||||
|
||||
static int gpio_sam_enable_callback(struct device *port,
|
||||
gpio_pin_t pin)
|
||||
{
|
||||
const struct gpio_sam_config * const cfg = DEV_CFG(port);
|
||||
Pio * const pio = cfg->regs;
|
||||
|
||||
pio->PIO_IER |= BIT(pin);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int gpio_sam_disable_callback(struct device *port,
|
||||
gpio_pin_t pin)
|
||||
{
|
||||
const struct gpio_sam_config * const cfg = DEV_CFG(port);
|
||||
Pio * const pio = cfg->regs;
|
||||
|
||||
pio->PIO_IDR |= BIT(pin);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct gpio_driver_api gpio_sam_api = {
|
||||
.pin_configure = gpio_sam_config,
|
||||
.port_get_raw = gpio_sam_port_get_raw,
|
||||
|
@ -313,8 +291,6 @@ static const struct gpio_driver_api gpio_sam_api = {
|
|||
.port_toggle_bits = gpio_sam_port_toggle_bits,
|
||||
.pin_interrupt_configure = gpio_sam_pin_interrupt_configure,
|
||||
.manage_callback = gpio_sam_manage_callback,
|
||||
.enable_callback = gpio_sam_enable_callback,
|
||||
.disable_callback = gpio_sam_disable_callback,
|
||||
};
|
||||
|
||||
int gpio_sam_init(struct device *dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue