drivers: gpio: rgpio: not support GPIO_DISCONNECTED
The hardware don't support GPIO_DISCONNECTED. Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
This commit is contained in:
parent
0971240b5e
commit
a6af366eb5
1 changed files with 4 additions and 0 deletions
|
@ -56,6 +56,10 @@ static int mcux_rgpio_configure(const struct device *dev,
|
||||||
struct pinctrl_soc_pin pin_cfg;
|
struct pinctrl_soc_pin pin_cfg;
|
||||||
int cfg_idx = pin, i;
|
int cfg_idx = pin, i;
|
||||||
|
|
||||||
|
if (flags == GPIO_DISCONNECTED) {
|
||||||
|
return -ENOTSUP;
|
||||||
|
}
|
||||||
|
|
||||||
/* Make sure pin is supported */
|
/* Make sure pin is supported */
|
||||||
if ((config->common.port_pin_mask & BIT(pin)) == 0) {
|
if ((config->common.port_pin_mask & BIT(pin)) == 0) {
|
||||||
return -ENOTSUP;
|
return -ENOTSUP;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue