[U-Boot] [PATCH] gpio: zynq: Read of mach data in platdata with dev_get_driver_data

Simon Glass sjg at chromium.org
Sun Jul 15 21:22:02 UTC 2018


On 12 July 2018 at 05:49, Michal Simek <michal.simek at xilinx.com> wrote:
> Remove bogus zynq_gpio_getplat_data() and read driver data directly.
>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
> Driver should use platdata structure but this change should be fine
> before this is fixed.
> Simon: Is ofdata_to_platdata correct function where this should be read?

Yes.

>
> ---
>  drivers/gpio/zynq_gpio.c | 29 ++---------------------------
>  1 file changed, 2 insertions(+), 27 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list