bluetooth: rfkill-bt: uart-rts gpio can be an optional pin

This patch set uart_rts_gpios as an optional gpio pin.

Some boards (e.g. px3se-sdk) do not use the rts flow control,
and the correspoding uart-rts pin is occupied as some other
functions(e.g. irq pin).

Change-Id: Ia402dc2b74c305d83d3e1ccbedc1c913b270c828
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
This commit is contained in:
Shunqian Zheng 2018-05-28 10:26:25 +08:00 committed by Tao Huang
parent 10c0b6abc7
commit 48ec8a809c

View File

@ -501,8 +501,8 @@ static int bluetooth_platdata_parse_dt(struct device *dev,
}
} else {
data->pinctrl = NULL;
LOG("%s: uart_rts_gpios is unvalid.\n", __func__);
return -EINVAL;
data->rts_gpio.io = -EINVAL;
LOG("%s: uart_rts_gpios is no-in-use.\n", __func__);
}
gpio = of_get_named_gpio_flags(node, "BT,power_gpio", 0, &flags);