diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-04-06 15:44:51 +0900 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-04-09 12:18:16 +0200 |
commit | e65ad41e3b3f28316565ad0061b8152a3a8227ba (patch) | |
tree | d390145c54c0ebbcba6f04c278197511a046faf6 /drivers | |
parent | e9642d5e162c2a219f770cf4a52b4c6b622879bb (diff) | |
download | linux-e65ad41e3b3f28316565ad0061b8152a3a8227ba.tar.gz linux-e65ad41e3b3f28316565ad0061b8152a3a8227ba.tar.bz2 linux-e65ad41e3b3f28316565ad0061b8152a3a8227ba.zip |
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')
-rw-r--r-- | drivers/mfd/stmpe-spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/stmpe-spi.c b/drivers/mfd/stmpe-spi.c index 973659f8abd9..a81badbaa917 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); } |