mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jingoo Han <jg1.han@samsung.com>
To: "'Andrew Morton'" <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org,
	"'Alessandro Zummo'" <a.zummo@towertech.it>,
	rtc-linux@googlegroups.com, "'Jingoo Han'" <jg1.han@samsung.com>
Subject: [PATCH 4/7] rtc: rtc-ds3234: use spi_set_drvdata()
Date: Fri, 05 Apr 2013 10:48:36 +0900	[thread overview]
Message-ID: <000401ce319f$affabf90$0ff03eb0$%han@samsung.com> (raw)
In-Reply-To: <000101ce319f$87f2a3f0$97d7ebd0$%han@samsung.com>

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

diff --git a/drivers/rtc/rtc-ds3234.c b/drivers/rtc/rtc-ds3234.c
index a66efd4..ba98c0e 100644
--- a/drivers/rtc/rtc-ds3234.c
+++ b/drivers/rtc/rtc-ds3234.c
@@ -151,7 +151,7 @@ static int ds3234_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



  parent reply	other threads:[~2013-04-05  1:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-05  1:47 [PATCH 1/7] rtc: rtc-rx4581: " 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 ` Jingoo Han [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000401ce319f$affabf90$0ff03eb0$%han@samsung.com' \
    --to=jg1.han@samsung.com \
    --cc=a.zummo@towertech.it \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rtc-linux@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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