spi: use to_spi_device
authorGeliang Tang <geliangtang@163.com>
Tue, 22 Dec 2015 16:18:41 +0000 (00:18 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 23 Dec 2015 12:15:41 +0000 (12:15 +0000)
commitd1eba93bd0fcd3f699cb8d666bc97788ee85d557
treeac1e0e0ad5d0922d4af59c140b4c94d9610cc948
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
spi: use to_spi_device

Use to_spi_device() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c