mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-24 22:36:05 +00:00
gpio: renesas: Simplify .request/.rfree callbacks
Remove identify wrapper functions. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de> Reviewed-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
5d0b3dde11
commit
a74931a945
1 changed files with 2 additions and 13 deletions
|
@ -130,20 +130,9 @@ static int rcar_gpio_get_function(struct udevice *dev, unsigned offset)
|
||||||
return GPIOF_INPUT;
|
return GPIOF_INPUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int rcar_gpio_request(struct udevice *dev, unsigned offset,
|
|
||||||
const char *label)
|
|
||||||
{
|
|
||||||
return pinctrl_gpio_request(dev, offset, label);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int rcar_gpio_free(struct udevice *dev, unsigned offset)
|
|
||||||
{
|
|
||||||
return pinctrl_gpio_free(dev, offset);
|
|
||||||
}
|
|
||||||
|
|
||||||
static const struct dm_gpio_ops rcar_gpio_ops = {
|
static const struct dm_gpio_ops rcar_gpio_ops = {
|
||||||
.request = rcar_gpio_request,
|
.request = pinctrl_gpio_request,
|
||||||
.rfree = rcar_gpio_free,
|
.rfree = pinctrl_gpio_free,
|
||||||
.direction_input = rcar_gpio_direction_input,
|
.direction_input = rcar_gpio_direction_input,
|
||||||
.direction_output = rcar_gpio_direction_output,
|
.direction_output = rcar_gpio_direction_output,
|
||||||
.get_value = rcar_gpio_get_value,
|
.get_value = rcar_gpio_get_value,
|
||||||
|
|
Loading…
Add table
Reference in a new issue