diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-02-21 00:17:47 +0800 |
---|---|---|
committer | Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com> | 2015-03-30 01:42:49 +0530 |
commit | bb1662760eb0ec2eb88253cb95e2d423b2c2bb44 (patch) | |
tree | db48e3747b87ee8959134966506e70083fb560ff /doc/driver-model | |
parent | 46122960f0e7bac8cbb97bcccf8dc788c3a0beeb (diff) | |
download | u-boot-imx-bb1662760eb0ec2eb88253cb95e2d423b2c2bb44.zip u-boot-imx-bb1662760eb0ec2eb88253cb95e2d423b2c2bb44.tar.gz u-boot-imx-bb1662760eb0ec2eb88253cb95e2d423b2c2bb44.tar.bz2 |
spi: cf_spi: Use to_cf_spi_slave to resolve cfslave from slave
Don't assume slave is always the first member of struct cf_spi_slave.
Use container_of instead of casting first structure member.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Diffstat (limited to 'doc/driver-model')
0 files changed, 0 insertions, 0 deletions