Skip to content
Snippets Groups Projects
Commit 87f48829 authored by Gianfranco Mariotti's avatar Gianfranco Mariotti
Browse files

[DRIVER] fxl6408: add dts property gpio-base

parent db8d6111
No related branches found
No related tags found
No related merge requests found
......@@ -221,12 +221,17 @@ static int fxl6408_probe(struct i2c_client *client,
gc->set_multiple = fxl6408_gpio_set_multiple;
gc->can_sleep = true;
gc->base =-1;
gc->ngpio = 8;
gc->label = chip->client->name;
gc->parent = dev;
gc->owner = THIS_MODULE;
gc->base = -1;
if (of_property_read_u32(dev->of_node, "gpio-base", &gpio_base) == 0) {
gc->base = gpio_base;
dev_info(dev, "GPIO expander base number will be %d\n", gpio_base);
}
ret = gpiochip_add_data(gc, chip);
if (ret)
return ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment