[U-Boot] [PATCH] serial: zynq: Use platdata for storing static data instead of priv
Simon Glass
sjg at chromium.org
Tue Jun 19 22:02:56 UTC 2018
On 15 June 2018 at 01:32, Michal Simek <michal.simek at xilinx.com> wrote:
> Explanation from Simon Glass
> "Private data is created when the device is probed and freed when the
> device is removed.
>
> Platform data is created when the device is bound, and survives
> probe/remove cycles.
>
> Strictly speaking, platform data should be used to hold the decoded
> device tree properties. Private data should be used for run-time
> things the device needs to keep track of."
>
> Based on description the driver needs to be switch to use platdata
> instead of priv.
>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
> Apply on the top of latest zynq serial changes (soon in mainline).
>
> ---
> drivers/serial/serial_zynq.c | 32 ++++++++++++++++----------------
> 1 file changed, 16 insertions(+), 16 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list