Message ID | 87efwzyebu.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Stephen Boyd |
Headers | show
Return-Path: <linux-clk-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B8DE36020C for <patchwork-linux-clk@patchwork.kernel.org>; Tue, 11 Apr 2017 00:36:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1CEB28066 for <patchwork-linux-clk@patchwork.kernel.org>; Tue, 11 Apr 2017 00:36:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9679C284D4; Tue, 11 Apr 2017 00:36:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E6A2128066 for <patchwork-linux-clk@patchwork.kernel.org>; Tue, 11 Apr 2017 00:36:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752728AbdDKAf4 (ORCPT <rfc822;patchwork-linux-clk@patchwork.kernel.org>); Mon, 10 Apr 2017 20:35:56 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:16348 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752022AbdDKAfy (ORCPT <rfc822; linux-clk@vger.kernel.org>); Mon, 10 Apr 2017 20:35:54 -0400 Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie3.idc.renesas.com with ESMTP; 11 Apr 2017 09:35:52 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id 655496AC79; Tue, 11 Apr 2017 09:35:52 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id 435E718071; Tue, 11 Apr 2017 09:35:52 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id 41B8218070; Tue, 11 Apr 2017 09:35:52 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac3.idc.renesas.com with ESMTP id KAC03166; Tue, 11 Apr 2017 09:35:52 +0900 X-IronPort-AV: E=Sophos;i="5.37,184,1488812400"; d="scan'208";a="240168696" Received: from mail-hk2apc01lp0213.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.213]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 11 Apr 2017 09:35:51 +0900 Authentication-Results: baylibre.com; dkim=none (message not signed) header.d=none; baylibre.com; dmarc=none action=none header.from=renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by HK2PR06MB0819.apcprd06.prod.outlook.com (10.162.240.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Tue, 11 Apr 2017 00:35:49 +0000 Message-ID: <87efwzyebu.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH 1/2] clk: cs2000: use existing priv_to_dev() to getting struct device User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@codeaurora.org> CC: <linux-renesas-soc@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-clk@vger.kernel.org> In-Reply-To: <87fuhfyedq.wl%kuninori.morimoto.gx@renesas.com> References: <87fuhfyedq.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset="US-ASCII" Date: Tue, 11 Apr 2017 00:35:49 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0148.jpnprd01.prod.outlook.com (10.174.224.152) To HK2PR06MB0819.apcprd06.prod.outlook.com (10.162.240.149) X-MS-Office365-Filtering-Correlation-Id: efb55809-a782-49bf-87a6-08d48072b42c X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:HK2PR06MB0819; X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0819; 3:V2I/pBsHOvW+9TjYjTpCVlSZkDWH6TJ2CYI2hmfEY06dY7zLp/29w3tZrh2lIUYvGANXdaMRJfTNSheh8KscKnOBauC/Fl6RATO4wXuFYubSe6Cc7r2oquxLWQ8m1H+LrTwkb/6zt7hb8NQ7srpTtDSmE0EGIul39D4c6sotfck68bHBdw/zAsweik42phr44YW2+oLDQuorxMV6ohX+rra55wM3dccsCg0fhjNlN/T0Hovtm7OmGpZ573LHWKthvqyVWnMr5m8vaiZqzl10+eFt9wswMHWO4fkY+8hUVgt2l8GpPu6T8DUthsDFGnWH7A1//QpgXxO05J5zPUiZVC/5FC/06pSE7s/H76kgWBE=; 25:Khr79OQdNMkMPnH07tcJt3G0R4AxOHYnA70qCO/r63xP0xakWkfW+pv/jdnNhVQRXN2WPZTffAqk0AR6FnDkssJjgQXBSddqbn03M9mIZ5lyCtLAjp0dz8haKkKiaTBvywbvZIS2S7ZZKOJI/k2+tANjBsYVz4xZlXXRRo/1wNQXfh2zZqhsESbJPm56pVlaFNX9P+fCr3nwTos5piJsqgZqESA3OUYk/wWGrUqMU/CjhVZT8HvI36a4AoCTtrj+BW8vVcZJl6lAM/yiNQY56fpIH/tkH8ihTmONIZxBB1CT0t7TT1YXCWpvVmKgP8meR8yggHdyUtbq5LNWuTcVFs1exmdz6QKqvaifZDeglZ2FVBzdDSXAQEe257AtSGhc9myCEwfgNUrJlxwHx/KKgFCGC1xXlxGmp57jBypOTMSMFprOYxoOF1810rzc82twUSQnwjUvROlqBESkSoBuHQ== X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0819; 31:VSpDSLMo+jTgDghKr9FN5WkCz5YkbDYHC50C64GD3BAQVPF0Z048dpQlu8UsARqsEiSYmt0YwoaEN0T8pZB9tYJtx5S1aUmQR+6OzMGY31wn4JWN00sq1BxsvMrgaIQL/uWjSLq5RJNjiFIOd4o0aSeAAgILsGvhiD/N88VDy3/fVlOR4GJ7CJ2H59j8YqggYULf3Ohh4Ez3kmdtu/bEkUcQWuunfywtZvwHmNSxYBoMJ/fXZNumLIWxyWhJvbq/; 20:gBprMOuNnTJsrPAnf/1JBEkHbMGNbMmOUQzgLOyeJtt0DnfWNqQCRWHjRof7To1KWDx2jvSAy8+p4uI0iYVwa+3s8zVyMCnTL2r1nEMhWsmShO7QNHC935CgO9pBVyjibL0L6N+wa/ueCTuwwTbPrEgAAbWrDBVMDJfKOUBHD9U77cSU5En0yw0zqXEzkXEIDhIpPLJHZm3TYJ+kFGRWhnlmO5z+jjTn8d9nMN1TJLeu7Cn4RKPxEBInJvK8n51CRiwqEeTJq+qmROUPIt3u50B3azozFcXy+vuMnKPA8gaz6XQ3USwKTjrY2/R3Wz7lQAiEgpGoRbFmHfj8kMWmSJjwH5BdjsLPUFVgwJOh+TJdmKQL0/LgW65nz1BlCDtGEJi5yDxo4619J59kLk6JoPdznUicTJ4kPvLECaN6YJQTaZ/v4l3R/Ubpotd2Be6ZcX8Ow/zqIXeQCtlYD+8SKAXz5UcUPrN1AJQJtiG6TL2j3jkmg3kHwuamISwo2tw4 X-Microsoft-Antispam-PRVS: <HK2PR06MB0819C9331B9497C9C1C2FFB0D4000@HK2PR06MB0819.apcprd06.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:HK2PR06MB0819; BCL:0; PCL:0; RULEID:; SRVR:HK2PR06MB0819; X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0819; 4:mxGJmQaNzKzmYhwUnUph8I03GYGj4xcHr5e6sU7j+c/ZLs5cwsHVS3/YxrlZFvAE4bIdbk3iJ+kSYo9YL6nWKm9hQsGvYsv6w1XhLAbayrjKnlwVh66KKJuNdPGKPNgD2Zp865Fo1+v9bw3iRVf8SjNv/JduT9SzL4c5J9j2BWGBQToxhRedB4YN5kdEcT4xwbKWN++T6GMvtUbtiz0O/MNWWTASnzTLCgpGiR0fPcNzYToC4hj9v1kvC7vcJ2rSVvzOT57Atk1AwsjXVRsCofMg4NS1aW0SnNYbJcwZByNZDsmFFWRGEGinU4NRy78GDm3CJkssad3D+FyNS+8fy1C5uLb5pk6Ad+Rt2j16MSlNnumAVSY0XQ3ZBKAzTqxjijOJKt0vZBwNLe9uAqJ3QjKiolOzlRrjO9kbxVpyEYRWe6Ux4BVZcCuV+oRs7UdPcvgltUvhxOzlk8rgoKy7wJKiDXJoVdbKhqL9BOOWwIbqdf0z6H9AdREtg5im3Ez75Wuz/W2xuF+lsjxKMYq8wxPbPq2RMuHJgKgO5g/mTH2dWoit+KdBG2uJYbFb8A/5i0DjV9bsFLk6tBYKityo39VryHt7bdZ8/j20WDltb46EKrfHTqcnn32Q6aSO6EjvvajBHRxThN6i2skhpFpvxcf3eEJKCI1i+Mx6sZso6PoFTDvSLECZ+oX4zwJvFvGMxKtZJ/5foUH41YiUgOCjgiaZFY3z7INYQn6mUuWYDr8= X-Forefront-PRVS: 0274272F87 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(39850400002)(39400400002)(39410400002)(39840400002)(39450400003)(39860400002)(53416004)(189998001)(50986999)(86362001)(42186005)(47776003)(36756003)(7736002)(2950100002)(8676002)(305945005)(66066001)(83506001)(6486002)(54356999)(6116002)(53936002)(50466002)(5660300001)(54906002)(38730400002)(23726003)(76176999)(4001350100001)(81166006)(3846002)(46406003)(33646002)(4326008)(25786009)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:HK2PR06MB0819; H:morimoto-PC.renesas.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HK2PR06MB0819; 23:ohJsvd6maqnc9CSgFUsU62A9ns5gb3e6Mbkqeb5Tz?= =?us-ascii?Q?+Orp2YN8comsyOKh9VniJCecZbzQC27+DLkQavfX/m8RWMJuz/VzkgegExfv?= =?us-ascii?Q?RBS0QY87q0NS3/+yvQKogqDt+BpEoOC7OwkD9Xozn7NIYhZe6dk55+2DBiAA?= =?us-ascii?Q?oZ9ZNbXaccEWEKqLaoGcwQ9SRzw7grHQZ0pXblQUidrwnU+81ThKlGRhiZvr?= =?us-ascii?Q?plt+2507rAZ2x1KNP3dacGLkZBYSRp7pJEMscXx8Hh27fc6HQ1t4SFPQwCPl?= =?us-ascii?Q?1bIKcb/SItm1yBguIizj2MspYQjdX+UdZShh4dYsdwYj+ySQGkFZWB7/l9BW?= =?us-ascii?Q?XpqeO5OoCaAAo7BAOATZJXeGIAS4KdSJwqb4oGl7HWu7SFJjH4W0KzX0k4EE?= =?us-ascii?Q?66SM7Ri6hb7dHAvl3Xme/prFgphTd5Px32Mp4qAbS+5g4uufQ+jhhgVwL8uX?= =?us-ascii?Q?S9aToujQLQER4KDUKIElYmgfz2zBKFQcN4HI27kVk4sUoflO2LUThOP4kyrb?= =?us-ascii?Q?bVi5zNHwBSpU1zHFvCGg1P+WakYDlBzuW+9g6Qn+aEMxH/DlYrCZN1LndEiG?= =?us-ascii?Q?ZEpJ1Nz+C63CrVPCM6K6s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eEg2zyxOM+zi9ra6j7RX+MKYciYE/KTxy3K8zd6xu0FNU7jKHeXwWQuYn/r32Sd9B9ieKlgKhnhw1cvBUvIrNnco3pyvXNbz2vuo95DMabkxBHqzPMaRE6t16/d3OmDXLYjts2r95vZ40M/sAwc/lBKouxI5c5HRv1gGB72yifE=; 24:u+JE1c8JA3vD27vIAOaVHC5kv04pe6f7HglcMj4eoeuytRaXUxcieXbujNGGEUj8uDsKTpwBUguI+wFp3ShohxMVRf6RKklwt3lM9FD1zrQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0819; 7:FQIIgktYgPkZtVv2ZVyZMXjOpP3U6sJ6UGF04B4Q6foJEaELXkKGAz08EVfD84/0FFpum+rRUdVWyzxqbRIQ/ECYeti4hp4wNoFsuBKu1uvjw9TM8EuGfAmrlLeAvmR2y+FYqJ97uQM1YrqrQCvg8H+CY+cs/g8/jmMpMlzTFRoSNUKqYjEg5ftXVkHVU/uO4uYenEMLUaRoLb5LGWCRo7Xt7pLcEzsbtfhkPSd/nFqYMUEALk1XCg4DYI+Fu1i4VZ0XpHBAh3Pq4zMdWnbCrG3z+wlggBUdUjzzHNaOWetEvSSlEHBh08CoMOS7u+lq2wsdHhj8h8Usv0cIERXL4w==; 20:fkQ8BdqyWT+M6tjfKFY4vSynxM+VqlkuE+LPISKUqS5ugK1m4hDfgaY4LLbcvFJB1II+YF0cO3YtYUkxnXymGtTI+zwPsTfqRpbMOsvleY36sqf8xqpH55swxfbuLx0V8/zSBrKenqa20E42AlpPvrUW5Q4CZl0HwB5ZrTxcnus= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2017 00:35:49.8953 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR06MB0819 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: <linux-clk.vger.kernel.org> X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
On 04/11, Kuninori Morimoto wrote: > From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> > > Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> > --- Applied to clk-next
diff --git a/drivers/clk/clk-cs2000-cp.c b/drivers/clk/clk-cs2000-cp.c index f5915ff..4df38c5 100644 --- a/drivers/clk/clk-cs2000-cp.c +++ b/drivers/clk/clk-cs2000-cp.c @@ -370,8 +370,7 @@ static u8 cs2000_get_parent(struct clk_hw *hw) static int cs2000_clk_get(struct cs2000_priv *priv) { - struct i2c_client *client = priv_to_client(priv); - struct device *dev = &client->dev; + struct device *dev = priv_to_dev(priv); struct clk *clk_in, *ref_clk; clk_in = devm_clk_get(dev, "clk_in"); @@ -439,8 +438,7 @@ static int cs2000_clk_register(struct cs2000_priv *priv) static int cs2000_version_print(struct cs2000_priv *priv) { - struct i2c_client *client = priv_to_client(priv); - struct device *dev = &client->dev; + struct device *dev = priv_to_dev(priv); s32 val; const char *revision; @@ -471,7 +469,7 @@ static int cs2000_version_print(struct cs2000_priv *priv) static int cs2000_remove(struct i2c_client *client) { struct cs2000_priv *priv = i2c_get_clientdata(client); - struct device *dev = &client->dev; + struct device *dev = priv_to_dev(priv); struct device_node *np = dev->of_node; of_clk_del_provider(np);