mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/7] rtc: rtc-rx4581: use spi_set_drvdata()
@ 2013-04-05  1:47 Jingoo Han
  2013-04-05  1:47 ` [PATCH 2/7] rtc: rtc-m41t94: " Jingoo Han
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Jingoo Han @ 2013-04-05  1:47 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, 'Jingoo Han'

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>
---
 drivers/rtc/rtc-rx4581.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/rtc/rtc-rx4581.c b/drivers/rtc/rtc-rx4581.c
index d1b88db..84eb08d 100644
--- a/drivers/rtc/rtc-rx4581.c
+++ b/drivers/rtc/rtc-rx4581.c
@@ -278,7 +278,7 @@ static int rx4581_probe(struct spi_device *spi)
 	if (IS_ERR(rtc))
 		return PTR_ERR(rtc);
 
-	dev_set_drvdata(&spi->dev, rtc);
+	spi_set_drvdata(spi, rtc);
 	return 0;
 }
 
-- 
1.7.2.5



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-04-05  1:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-05  1:47 [PATCH 1/7] rtc: rtc-rx4581: use spi_set_drvdata() Jingoo Han
2013-04-05  1:47 ` [PATCH 2/7] rtc: rtc-m41t94: " Jingoo Han
2013-04-05  1:48 ` [PATCH 3/7] rtc: rtc-r9701: " Jingoo Han
2013-04-05  1:48 ` [PATCH 4/7] rtc: rtc-ds3234: " Jingoo Han
2013-04-05  1:48 ` [PATCH 5/7] rtc: rtc-ds1390: " Jingoo Han
2013-04-05  1:49 ` [PATCH 6/7] rtc: rtc-m41t93: " Jingoo Han
2013-04-05  1:49 ` [PATCH 7/7] rtc: rtc-max6902: " Jingoo Han

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome