gpio: deprecate gpio pin callback enable and disable API
These have been replaced by the appropriate call to gpio_pin_interrupt_configure(). While the disable function could be implemented using the new functionality, the enable function cannot because the interrupt mode is not available. Consequently we cannot replace these with equivalent functionality using the legacy API. Clean up the internal implementation by removing the inaccessible port-based enable/disable feature, leaving the pin-based capability in place. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
e999f7c6fb
commit
1947481cce
22 changed files with 90 additions and 302 deletions
|
@ -433,15 +433,11 @@ static int gpio_intel_apl_manage_callback(struct device *dev,
|
|||
}
|
||||
|
||||
static int gpio_intel_apl_enable_callback(struct device *dev,
|
||||
int access_op, u32_t pin)
|
||||
u32_t pin)
|
||||
{
|
||||
const struct gpio_intel_apl_config *cfg = dev->config->config_info;
|
||||
u32_t raw_pin, reg;
|
||||
|
||||
if (access_op != GPIO_ACCESS_BY_PIN) {
|
||||
return -ENOTSUP;
|
||||
}
|
||||
|
||||
pin = k_array_index_sanitize(pin, cfg->num_pins + 1);
|
||||
|
||||
raw_pin = cfg->pin_offset + pin;
|
||||
|
@ -462,15 +458,11 @@ static int gpio_intel_apl_enable_callback(struct device *dev,
|
|||
}
|
||||
|
||||
static int gpio_intel_apl_disable_callback(struct device *dev,
|
||||
int access_op, u32_t pin)
|
||||
u32_t pin)
|
||||
{
|
||||
const struct gpio_intel_apl_config *cfg = dev->config->config_info;
|
||||
u32_t raw_pin, reg;
|
||||
|
||||
if (access_op != GPIO_ACCESS_BY_PIN) {
|
||||
return -ENOTSUP;
|
||||
}
|
||||
|
||||
pin = k_array_index_sanitize(pin, cfg->num_pins + 1);
|
||||
|
||||
raw_pin = cfg->pin_offset + pin;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue