spi: zynq_spi: Fix to configure CPOL, CPHA mask
authorJagan Teki <jteki@openedev.com>
Mon, 7 Sep 2015 20:08:50 +0000 (01:38 +0530)
committerJagan Teki <jteki@openedev.com>
Sun, 11 Oct 2015 11:13:06 +0000 (16:43 +0530)
commita22bba81e40959c3675b794422508911034049d4
tree51912be6eddac4873c6d7a4fcefeb60384e3155b
parentd5f60737dbaac82f3f7d49eb03ece443beb70fc8
spi: zynq_spi: Fix to configure CPOL, CPHA mask

priv->mode is initialized when .set_speed triggers
with mode value, so checking mode for configuring
CPOL, CPHA using priv->mode is invalid hence use
mode from .set_speed argument, and at the end
priv->mode will initialized with mode.

This patch also replaces formatting string to use
speed instead of mode in .set_speed ops.

Signed-off-by: Jagan Teki <jteki@openedev.com>
drivers/spi/zynq_spi.c