drivers/gpio: Adding missing braces for XEC driver
Even one liner if () statement should have braces. Fixing parameter indentation as well. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
209a9104be
commit
e555ddd9e6
1 changed files with 8 additions and 7 deletions
|
@ -45,8 +45,9 @@ static int gpio_xec_configure(struct device *dev,
|
||||||
u32_t gpio_interrupt = 0;
|
u32_t gpio_interrupt = 0;
|
||||||
|
|
||||||
/* Validate pin number range in terms of current port */
|
/* Validate pin number range in terms of current port */
|
||||||
if ((valid_ctrl_masks[config->port_num] & BIT(pin)) == 0)
|
if ((valid_ctrl_masks[config->port_num] & BIT(pin)) == 0) {
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
}
|
||||||
|
|
||||||
/* Check for an invalid pin configuration */
|
/* Check for an invalid pin configuration */
|
||||||
if ((flags & GPIO_INT) && (flags & GPIO_DIR_OUT)) {
|
if ((flags & GPIO_INT) && (flags & GPIO_DIR_OUT)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue