mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 02:36:21 +00:00
mfd: arizona: 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>
This commit is contained in:
parent
a720c30533
commit
e9642d5e16
@ -67,7 +67,7 @@ static int arizona_spi_probe(struct spi_device *spi)
|
|||||||
|
|
||||||
static int arizona_spi_remove(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);
|
arizona_dev_exit(arizona);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user