]> git.baikalelectronics.ru Git - kernel.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)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 5 Aug 2013 18:05:45 +0000 (19:05 +0100)
commitc0d5198068b912b254fba617b90973c61df8658e
tree3709b00188538cffb2c16aef6fe7de1be55a9b8a
parent25c0bdbe7b521fab907f13f85d09a2c59bb96273
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>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/devices/m25p80.c