]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commite5e04e6cff6479f0d1f5b64a316b6cbc4c79c32c
treee095ff2f2d23a2092f7672a4da8169281a71ef8c
parent873019d6b445bc69fe7323563e687b84bd0df403
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