Skip to content

Commit

Permalink
mfd: arizona: 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 a720c30 commit e9642d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/arizona-spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static int arizona_spi_probe(struct spi_device *spi)

static int arizona_spi_remove(struct spi_device *spi)
{
struct arizona *arizona = dev_get_drvdata(&spi->dev);
struct arizona *arizona = spi_get_drvdata(spi);
arizona_dev_exit(arizona);
return 0;
}
Expand Down

0 comments on commit e9642d5

Please sign in to comment.