]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: sst25l: use spi_get_drvdata() and spi_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Sat, 6 Apr 2013 06:40:30 +0000 (15:40 +0900)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 5 Aug 2013 18:05:37 +0000 (19:05 +0100)
commita9ad7a1382553d3aeb4f5f8961d0be5a850f8769
treef655a74c136f7697fc18c949ee497280465611a0
parent1e6e6a0d051973bd27e23cacac88aad5a34b5f73
mtd: sst25l: 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>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/devices/sst25l.c