spi: cf_qspi: Fixup to_cf_qspi_slave macro
authorAxel Lin <axel.lin@ingics.com>
Thu, 15 Jan 2015 05:32:55 +0000 (13:32 +0800)
committerJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Sun, 29 Mar 2015 20:09:20 +0000 (01:39 +0530)
commita46988f11f7fad3043c6db1169f05d10f002d12c
tree05b80c7c86323d434e5209b99d6f0684e56fb4a2
parent662e2acb46250881ec26bc8366fc9eb1856cb7c2
spi: cf_qspi: Fixup to_cf_qspi_slave macro

The third parameter of container_of is the name of the member within the struct.
Current code only works if the parameter passed to to_cf_qspi_slave named slave.
Fix it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
drivers/spi/cf_qspi.c