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>,
"'David Dajun Chen'" <dchen@diasemi.com>
Subject: [PATCH 04/15] rtc: rtc-da9055: use dev_get_platdata()
Date: Mon, 23 Sep 2013 18:43:04 +0900 [thread overview]
Message-ID: <002001ceb841$4d063300$e7129900$%han@samsung.com> (raw)
In-Reply-To: <001801ceb840$9a81ab10$cf850130$%han@samsung.com>
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/rtc/rtc-da9055.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-da9055.c b/drivers/rtc/rtc-da9055.c
index e00642b..48cb2ac3 100644
--- a/drivers/rtc/rtc-da9055.c
+++ b/drivers/rtc/rtc-da9055.c
@@ -278,7 +278,7 @@ static int da9055_rtc_probe(struct platform_device *pdev)
return -ENOMEM;
rtc->da9055 = dev_get_drvdata(pdev->dev.parent);
- pdata = rtc->da9055->dev->platform_data;
+ pdata = dev_get_platdata(rtc->da9055->dev);
platform_set_drvdata(pdev, rtc);
ret = da9055_rtc_device_init(rtc->da9055, pdata);
--
1.7.10.4
next prev parent reply other threads:[~2013-09-23 9:43 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-23 9:38 [PATCH 00/15] rtc: " Jingoo Han
2013-09-23 9:39 ` [PATCH 01/15] rtc: rtc-88pm80x: " Jingoo Han
2013-09-23 9:40 ` [PATCH 02/15] rtc: rtc-88pm860x: " Jingoo Han
2013-10-10 3:41 ` Haojian Zhuang
2013-09-23 9:41 ` [PATCH 03/15] rtc: rtc-cmos: " Jingoo Han
2013-09-23 9:43 ` Jingoo Han [this message]
2013-09-23 9:43 ` [PATCH 05/15] rtc: rtc-ds1305: " Jingoo Han
2013-09-23 9:44 ` [PATCH 06/15] rtc: rtc-ds1307: " Jingoo Han
2013-09-23 9:45 ` [PATCH 07/15] rtc: rtc-ds2404: " Jingoo Han
2013-09-23 9:46 ` [PATCH 08/15] rtc: rtc-ep93xx: " Jingoo Han
2013-09-23 9:47 ` [PATCH 09/15] rtc: hid-sensor-time: " Jingoo Han
2013-09-23 9:48 ` [PATCH 10/15] rtc: rtc-m48t59: " Jingoo Han
2013-09-23 9:48 ` [PATCH 11/15] rtc: rtc-m48t86: " Jingoo Han
2013-09-23 9:49 ` [PATCH 12/15] rtc: rtc-pcf2123: " Jingoo Han
2013-09-23 9:50 ` [PATCH 13/15] rtc: rtc-rs5c348: " Jingoo Han
2013-09-23 9:52 ` [PATCH 14/15] rtc: rtc-sh: " Jingoo Han
2013-09-23 9:53 ` [PATCH 15/15] rtc: rtc-v3020: " 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='002001ceb841$4d063300$e7129900$%han@samsung.com' \
--to=jg1.han@samsung.com \
--cc=a.zummo@towertech.it \
--cc=akpm@linux-foundation.org \
--cc=dchen@diasemi.com \
--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