mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
e9642d5e16
commit
e65ad41e3b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue