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:
Tomasz Bursztyka 2019-08-02 11:31:51 +02:00 committed by Ioannis Glaropoulos
commit e555ddd9e6

View file

@ -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)) {