summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/stmpe-spi.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-04-06 15:44:51 +0900
committerSamuel Ortiz <sameo@linux.intel.com>2013-04-09 12:18:16 +0200
commite65ad41e3b3f28316565ad0061b8152a3a8227ba (patch)
treed390145c54c0ebbcba6f04c278197511a046faf6 /drivers/mfd/stmpe-spi.c
parente9642d5e162c2a219f770cf4a52b4c6b622879bb (diff)
mfd: stmpe: Use spi_get_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: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/stmpe-spi.c')
-rw-r--r--drivers/mfd/stmpe-spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/stmpe-spi.c b/drivers/mfd/stmpe-spi.c
index 973659f8abd..a81badbaa91 100644
--- a/drivers/mfd/stmpe-spi.c
+++ b/drivers/mfd/stmpe-spi.c
@@ -103,7 +103,7 @@ stmpe_spi_probe(struct spi_device *spi)
static int stmpe_spi_remove(struct spi_device *spi)
{
- struct stmpe *stmpe = dev_get_drvdata(&spi->dev);
+ struct stmpe *stmpe = spi_get_drvdata(spi);
return stmpe_remove(stmpe);
}