diff options
author | Simon Glass <sjg@chromium.org> | 2017-05-18 20:09:18 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-06-01 07:03:10 -0600 |
commit | 3a57123e598ea46fc88a8e29e6932eba02d4ac5f (patch) | |
tree | ff2ec40f0504e730ccf769a0b4de2e5b8ff3371b /drivers/gpio/tegra186_gpio.c | |
parent | 6fb2f57916bac47458ca7597b27617a99c492b28 (diff) | |
download | u-boot-3a57123e598ea46fc88a8e29e6932eba02d4ac5f.tar.gz u-boot-3a57123e598ea46fc88a8e29e6932eba02d4ac5f.tar.xz u-boot-3a57123e598ea46fc88a8e29e6932eba02d4ac5f.zip |
dm: gpio: Refactor to prepare for live tree support
Move the main part of the GPIO request function into a separate function
so that it can be used by the live tree function when added. Update the
xlate method to use a node reference.
Update all GPIO drivers to handle the modified xlate() method.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/gpio/tegra186_gpio.c')
-rw-r--r-- | drivers/gpio/tegra186_gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/tegra186_gpio.c b/drivers/gpio/tegra186_gpio.c index cb2524e9bf..c5a7e13cce 100644 --- a/drivers/gpio/tegra186_gpio.c +++ b/drivers/gpio/tegra186_gpio.c @@ -139,7 +139,7 @@ static int tegra186_gpio_get_function(struct udevice *dev, unsigned offset) } static int tegra186_gpio_xlate(struct udevice *dev, struct gpio_desc *desc, - struct fdtdec_phandle_args *args) + struct ofnode_phandle_args *args) { int gpio, port, ret; |