]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mfd: stmpe: Use spi_get_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Sat, 6 Apr 2013 06:44:51 +0000 (15:44 +0900)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 9 Apr 2013 10:18:16 +0000 (12:18 +0200)
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>
drivers/mfd/stmpe-spi.c

index 973659f8abd965bf689e48d7a92bd4b38f8b8c11..a81badbaa917dac49260ae1e10c7b08ec0b1a524 100644 (file)
@@ -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);
 }