Message ID | 000401ce319f$affabf90$0ff03eb0$%han@samsung.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <rtc-linux+bncBDTJ5LFEQQCBB5O27CFAKGQE6IZA5MY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-qc0-x238.google.com (mail-qc0-x238.google.com [IPv6:2607:f8b0:400d:c01::238]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id AECE62C00A6 for <incoming@patchwork.ozlabs.org>; Fri, 5 Apr 2013 12:48:40 +1100 (EST) Received: by mail-qc0-f184.google.com with SMTP id s25sf349994qcq.11 for <incoming@patchwork.ozlabs.org>; Thu, 04 Apr 2013 18:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-received:x-beenthere:x-received:received-spf:x-auditid:from:to:cc :references:in-reply-to:subject:date:message-id:mime-version :x-mailer:thread-index:x-brightmail-tracker:x-brightmail-tracker :dlp-filter:x-mtr:x-cfilter-loop:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type:content-language; bh=ySumCdICRnnQNd9F3pQzP+1zZhdcqx5dtihO/F3rsCg=; b=Ac7pZrHcLOnUMGjDD/xt/jrgSycuhujY9llJd+Y3AVftfDNEQ6PNkce3PQ6ar0Y93c PP713AuWb+qQIQBGbO0XF7BwmhtTrYehxEKtoxeikBLSrDNqz2f/U9FF6xxiI6wwWuGG tYTaZfL36EbDz0BskU9Hh/G8D0KI13yC9EVUhygsMJcKvA0pB/CtgLdxX8Xu5XOm3GDx vjY7IKlVrVxGnleKdyJmGa01u54ksNv+079UrWvpWFbb8bEx2k3MQrhPfNJxUWDZ5pVk ie3YZ5sHyOnazwyhrTdu6epUIPrOq4oxD/uKRzaV3lKjUk/wrYzBeaugl9gSN27HQGz3 PGeQ== X-Received: by 10.50.16.71 with SMTP id e7mr82465igd.14.1365126517874; Thu, 04 Apr 2013 18:48:37 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.95.198 with SMTP id dm6ls208534igb.16.canary; Thu, 04 Apr 2013 18:48:37 -0700 (PDT) X-Received: by 10.66.12.161 with SMTP id z1mr1786781pab.11.1365126517434; Thu, 04 Apr 2013 18:48:37 -0700 (PDT) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by gmr-mx.google.com with ESMTP id pp3si1764591pbb.1.2013.04.04.18.48.37; Thu, 04 Apr 2013 18:48:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of jg1.han@samsung.com designates 203.254.224.25 as permitted sender) client-ip=203.254.224.25; Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MKR00J7YED0E670@mailout2.samsung.com> for rtc-linux@googlegroups.com; Fri, 05 Apr 2013 10:48:36 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 1D.09.07735.47D2E515; Fri, 05 Apr 2013 10:48:36 +0900 (KST) X-AuditID: cbfee68e-b7f946d000001e37-c3-515e2d744444 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 52.E5.17838.47D2E515; Fri, 05 Apr 2013 10:48:36 +0900 (KST) Received: from DOJG1HAN02 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MKR00HTNED0BJD0@mmp1.samsung.com>; Fri, 05 Apr 2013 10:48:36 +0900 (KST) 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> References: <000101ce319f$87f2a3f0$97d7ebd0$%han@samsung.com> In-reply-to: <000101ce319f$87f2a3f0$97d7ebd0$%han@samsung.com> Subject: [rtc-linux] [PATCH 4/7] rtc: rtc-ds3234: use spi_set_drvdata() Date: Fri, 05 Apr 2013 10:48:36 +0900 Message-id: <000401ce319f$affabf90$0ff03eb0$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4xn4fH39zvwb7bR32L9HOXANRbigAAB3DQ X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrBIsWRmVeSWpSXmKPExsVy+t8zA90S3bhAg2XH5CyWXLzKbjFn/Ro2 i8sLL7FaXN41h81if2cHowOrx56JJ9k8Tsz4zeLRt2UVo8f0eT+ZPD5vkgtgjeKySUnNySxL LdK3S+DKmHZiPlPBKdaKFc+msjUwnmHpYuTkkBAwkWg/+QjKFpO4cG89WxcjF4eQwDJGie/9 +9lgij7+P8oEkVjEKNF5YBkzhPOLUeLCnOPsIFVsAmoSX74cBrI5OEQE9CXaWjRAapgFehkl zvTuBqsRErCVWP2nB2wdp4CdxNd5GxhBbGEBa4k9XXeYQGwWAVWJOw8h6nmB6luWnWCCsAUl fky+B9bLLKAlsX7ncSYIW15i85q3zCB7JQTUJR791QUJiwgYSfTc+c4KUSIise/FO0aQeyQE 7rFLvJz5gRlil4DEt8mHWCB6ZSU2HWCGeFhS4uCKGywTGCVmIdk8C8nmWUg2z0KyYgEjyypG 0dSC5ILipPQiI73ixNzi0rx0veT83E2MkFjt28F484D1IcZkoPUTmaVEk/OBsZ5XEm9obGZk YWpiamxkbmlGmrCSOK9ai3WgkEB6YklqdmpqQWpRfFFpTmrxIUYmDk6pBkb5rypXktgf/Suw 5dzKrbtsl+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V/k O6cwRv5ftyHT5MXMp/tv7M/8v5DrvnY802OOqb9+KLEUZyQaajEXFScCALQrNqlIAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Original-Sender: jg1.han@samsung.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of jg1.han@samsung.com designates 203.254.224.25 as permitted sender) smtp.mail=jg1.han@samsung.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: <rtc-linux.googlegroups.com> X-Google-Group-Id: 712029733259 List-Post: <http://groups.google.com/group/rtc-linux/post?hl=en_US>, <mailto:rtc-linux@googlegroups.com> List-Help: <http://groups.google.com/support/?hl=en_US>, <mailto:rtc-linux+help@googlegroups.com> List-Archive: <http://groups.google.com/group/rtc-linux?hl=en_US> Sender: rtc-linux@googlegroups.com List-Subscribe: <http://groups.google.com/group/rtc-linux/subscribe?hl=en_US>, <mailto:rtc-linux+subscribe@googlegroups.com> List-Unsubscribe: <http://groups.google.com/group/rtc-linux/subscribe?hl=en_US>, <mailto:googlegroups-manage+712029733259+unsubscribe@googlegroups.com> Content-type: text/plain; charset=ISO-8859-1 Content-language: ko |
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; }
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(-)