]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: m25p80: use spi_get_drvdata() and spi_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Sat, 6 Apr 2013 06:41:32 +0000 (15:41 +0900)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 29 May 2013 06:56:58 +0000 (09:56 +0300)
commit0d3414286536ebb2e29a06f0191b6e196bd443f9
treec8be3b9b6c14886d9bb89c03dc86e07812456efd
parent6577772d64bbc0842a3c91697bc89fef4a8e0c5b
mtd: m25p80: use spi_get_drvdata() and spi_set_drvdata()

Use the wrapper functions for getting and setting the driver data using
spi_device instead of using dev_{get|set}_drvdata with &spi->dev, so we
can directly pass a struct spi_device.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/devices/m25p80.c