diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-04-06 02:44:51 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-04-09 06:18:16 -0400 |
commit | e65ad41e3b3f28316565ad0061b8152a3a8227ba (patch) | |
tree | d390145c54c0ebbcba6f04c278197511a046faf6 /drivers/mfd | |
parent | e9642d5e162c2a219f770cf4a52b4c6b622879bb (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')
-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) | |||
103 | 103 | ||
104 | static int stmpe_spi_remove(struct spi_device *spi) | 104 | static int stmpe_spi_remove(struct spi_device *spi) |
105 | { | 105 | { |
106 | struct stmpe *stmpe = dev_get_drvdata(&spi->dev); | 106 | struct stmpe *stmpe = spi_get_drvdata(spi); |
107 | 107 | ||
108 | return stmpe_remove(stmpe); | 108 | return stmpe_remove(stmpe); |
109 | } | 109 | } |