spi: pxa2xx: derive struct chip_data from struct drv_data
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 22 Oct 2015 13:44:40 +0000 (16:44 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 22 Oct 2015 23:56:05 +0000 (08:56 +0900)
commitd2c2f6a47633a36bc8db8c802f7c284da36a7a53
treeddccc26a96ae33c849d0b192a09d76d405056c24
parentd74c4b1c61ecc5ad8158ac649245fdfc9601c1b5
spi: pxa2xx: derive struct chip_data from struct drv_data

Since we call pxa2xx_ssp_get_clk_div() from pump_transfers() we may derive
pointer to struct chip_data from struct drv_data like it's done in the rest
of the functions. This will make it less errorprone.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c