|
@@ -227,7 +227,7 @@ static int pca953x_xlate(struct udevice *dev, struct gpio_desc *desc,
|
|
struct ofnode_phandle_args *args)
|
|
struct ofnode_phandle_args *args)
|
|
{
|
|
{
|
|
desc->offset = args->args[0];
|
|
desc->offset = args->args[0];
|
|
- desc->flags = args->args[1] & (GPIO_ACTIVE_LOW ? GPIOD_ACTIVE_LOW : 0);
|
|
|
|
|
|
+ desc->flags = args->args[1] & GPIO_ACTIVE_LOW ? GPIOD_ACTIVE_LOW : 0;
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|