dm: spi: soft_spi bug fix
authorPeng Fan <van.freenix@gmail.com>
Tue, 3 May 2016 02:02:20 +0000 (10:02 +0800)
committerSimon Glass <sjg@chromium.org>
Tue, 17 May 2016 15:54:43 +0000 (09:54 -0600)
commitb6d54d527325f27c460777b882e23d21a935765a
tree80da87bf4b21aa9a3959f98ab96e6d1164bed4e3
parent35732098db382b48e3fb4f3595fc108f69ea4457
dm: spi: soft_spi bug fix

When doing xfer, should use device->parent, but not device
When doing bit xfer, should use "!!(tmpdout & 0x80)", but not
"(tmpdout & 0x80)"

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Jagan Teki <jteki@openedev.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/spi/soft_spi.c