serial: zynq: Use platdata for storing static data instead of priv
authorMichal Simek <michal.simek@xilinx.com>
Thu, 14 Jun 2018 08:32:27 +0000 (10:32 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 19 Jul 2018 08:49:54 +0000 (10:49 +0200)
commit6bdf0a992c962e15ab637a096d7f7d5601e0b4c5
treee095ff2f2d23a2092f7672a4da8169281a71ef8c
parent4fb67f47f123bb301e1ffbbb345d8f6fe46ec3cd
serial: zynq: Use platdata for storing static data instead of priv

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@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/serial/serial_zynq.c