gpio: remove port access op support
The only remaining port operations have dedicated API function table entries. Remove the defines for access op (mode), and remove support for access op from all implementations. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
1f9beb193f
commit
c7d526be04
27 changed files with 92 additions and 280 deletions
|
@ -299,13 +299,12 @@ static int setup_pin_pullupdown(struct device *dev, u32_t pin, int flags)
|
|||
* @brief Configure pin or port
|
||||
*
|
||||
* @param dev Device struct of the PCA95XX
|
||||
* @param access_op Access operation (pin or port)
|
||||
* @param pin The pin number
|
||||
* @param flags Flags of pin or port
|
||||
*
|
||||
* @return 0 if successful, failed otherwise
|
||||
*/
|
||||
static int gpio_pca95xx_config(struct device *dev, int access_op,
|
||||
static int gpio_pca95xx_config(struct device *dev,
|
||||
u32_t pin, int flags)
|
||||
{
|
||||
int ret;
|
||||
|
@ -318,11 +317,6 @@ static int gpio_pca95xx_config(struct device *dev, int access_op,
|
|||
u16_t i2c_addr = config->i2c_slave_addr;
|
||||
#endif
|
||||
|
||||
/* only support config by pin */
|
||||
if (access_op != GPIO_ACCESS_BY_PIN) {
|
||||
return -ENOTSUP;
|
||||
}
|
||||
|
||||
/* Does not support disconnected pin */
|
||||
if ((flags & (GPIO_INPUT | GPIO_OUTPUT)) == GPIO_DISCONNECTED) {
|
||||
return -ENOTSUP;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue