Use bool rather than u8 for the gpio-chip-registered flag.
Signed-off-by: Johan Hovold <johan@kernel.org>
struct gpio_chip gc;
u8 config;
u8 gpio_mode;
- u8 gpio_registered;
+ bool gpio_registered;
#endif
u8 partnum;
};
result = gpiochip_add_data(&priv->gc, serial);
if (!result)
- priv->gpio_registered = 1;
+ priv->gpio_registered = true;
return result;
}
if (priv->gpio_registered) {
gpiochip_remove(&priv->gc);
- priv->gpio_registered = 0;
+ priv->gpio_registered = false;
}
}