commit | 3cc94b1b06378dc38a6ea6878be4d94caeb30a00 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Oct 13 23:41:56 2014 -0600 |
committer | Simon Glass <sjg@chromium.org> | Wed Oct 22 10:36:47 2014 -0600 |
tree | e3bf3cd301a4389d7b821f8d82e9ae2d8b27cde2 | |
parent | def921536fc0ff9e51e04a29c100d2f7176125b3 [diff] |
dm: spi: Adjust cmd_spi to work with driver model Driver model uses a different way to find the SPI bus and slave from the numbered devices given on the command line. Adjust the code to suit. We use a generic SPI device, and attach it to the SPI bus before performing the transaction. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>