Skip to content

Commit

Permalink
mfd: stmpe: Use spi_get_drvdata()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jingoo Han authored and Samuel Ortiz committed Apr 9, 2013
1 parent e9642d5 commit e65ad41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/stmpe-spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e65ad41

Please sign in to comment.