aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-04-06 02:43:48 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2013-04-09 06:18:16 -0400
commit7c478b405837e91f68208b423acd20dad184998c (patch)
tree4508b9510d8a43efa7749f2445b1da983b72f675 /drivers/mfd
parent1b1ba09c39a7262f322290820ad8f29f964b9eee (diff)
mfd: ezx-pcap: Use spi_get_drvdata() and spi_set_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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/ezx-pcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/ezx-pcap.c b/drivers/mfd/ezx-pcap.c
index f83cc3da9308..5502106ad515 100644
--- a/drivers/mfd/ezx-pcap.c
+++ b/drivers/mfd/ezx-pcap.c
@@ -393,7 +393,7 @@ static int pcap_add_subdev(struct pcap_chip *pcap,
393 393
394static int ezx_pcap_remove(struct spi_device *spi) 394static int ezx_pcap_remove(struct spi_device *spi)
395{ 395{
396 struct pcap_chip *pcap = dev_get_drvdata(&spi->dev); 396 struct pcap_chip *pcap = spi_get_drvdata(spi);
397 struct pcap_platform_data *pdata = spi->dev.platform_data; 397 struct pcap_platform_data *pdata = spi->dev.platform_data;
398 int i, adc_irq; 398 int i, adc_irq;
399 399
@@ -439,7 +439,7 @@ static int ezx_pcap_probe(struct spi_device *spi)
439 mutex_init(&pcap->adc_mutex); 439 mutex_init(&pcap->adc_mutex);
440 INIT_WORK(&pcap->isr_work, pcap_isr_work); 440 INIT_WORK(&pcap->isr_work, pcap_isr_work);
441 INIT_WORK(&pcap->msr_work, pcap_msr_work); 441 INIT_WORK(&pcap->msr_work, pcap_msr_work);
442 dev_set_drvdata(&spi->dev, pcap); 442 spi_set_drvdata(spi, pcap);
443 443
444 /* setup spi */ 444 /* setup spi */
445 spi->bits_per_word = 32; 445 spi->bits_per_word = 32;