commit | 13e17090ab9cea0f42fe569a98aa2c1ee5906d67 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Sat Feb 21 00:17:47 2015 +0800 |
committer | Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com> | Mon Mar 30 01:42:49 2015 +0530 |
tree | db48e3747b87ee8959134966506e70083fb560ff | |
parent | e8829b6bffe22c3b0e2e2d83e521315013c8cf5d [diff] |
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>