]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:35:12 +0000 (14:35 +0200)
commite2b4022babbf580d0cc58a31b58d3b5393e01cbc
treefad5faba0635293a154f24acc059e4c69c34a3d7
parent53db97ce2e63bfb195c1fa24df246a9147a2b5ed
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