From patchwork Thu Sep 10 06:39:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7151081 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8FD699F39B for ; Thu, 10 Sep 2015 06:40:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 984FC2087F for ; Thu, 10 Sep 2015 06:40:47 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 54C1F207C6 for ; Thu, 10 Sep 2015 06:40:46 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 42B1F265794; Thu, 10 Sep 2015 08:40:45 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_LOW, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 9B6102654E5; Thu, 10 Sep 2015 08:40:25 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id C27862655DB; Thu, 10 Sep 2015 08:40:24 +0200 (CEST) Received: from relmlie3.idc.renesas.com (relmlor4.renesas.com [210.160.252.174]) by alsa0.perex.cz (Postfix) with ESMTP id E31522614D4 for ; Thu, 10 Sep 2015 08:40:04 +0200 (CEST) Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie3.idc.renesas.com with ESMTP; 10 Sep 2015 15:40:03 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id 663DA4C261; Thu, 10 Sep 2015 15:40:03 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id 52BEF2806E; Thu, 10 Sep 2015 15:40:03 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id 4D6032806D; Thu, 10 Sep 2015 15:40:03 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac2.idc.renesas.com with ESMTP id RAA14488; Thu, 10 Sep 2015 15:40:03 +0900 X-IronPort-AV: E=Sophos;i="5.17,502,1437404400"; d="scan'";a="195339369" Received: from mail-sg2apc01lp0240.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.240]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 10 Sep 2015 15:40:02 +0900 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by SIXPR06MB0608.apcprd06.prod.outlook.com (10.160.237.15) with Microsoft SMTP Server (TLS) id 15.1.262.15; Thu, 10 Sep 2015 06:39:59 +0000 Message-ID: <87k2ryok6w.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown In-Reply-To: <87lhceok83.wl%kuninori.morimoto.gx@renesas.com> References: <87lhceok83.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Thu, 10 Sep 2015 06:39:59 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: KAWPR01CA0013.jpnprd01.prod.outlook.com (25.161.24.23) To SIXPR06MB0608.apcprd06.prod.outlook.com (25.160.237.15) X-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MpTdYf18rDXZS+ngo46MprKU9CKua4HZdD2gHchnMiAAt8e6FoTXvvflhXiGSG3W4GzLMuvJxZHhkA/kWzCcUl1cscNm51vTXgaGs34MokdIq7FWi3v022G5vYf7Qn6fWiz7y2XvLxXMEFMadDQFFCBWsO9Chb5Cl08TWHgpx+YG4EaxtoE+U; 4:cuu+ph15tYQSFMVcGX+VK6VJHY8tiJEs5ShASAk0VCLSFOI5BPx9Rx+jXpALL8mHsWaUDQJitReA1pCzGvyf100xmZdsyR0Kvoin91GkduoaDl+DNPPTqMjB6wM4o4hf63AUk2te/MuZbEftOsg0abQ7AdqSIEnFcYIDKMu1uHjQiCvbZX6Db6BBu1Oaw74jE/naENCV3O1NPcsKlT69GWlT+lCrj1cZlU04IYxY0Jof4A/8QZLCcKh9/jN23FO8dyQwI6dqLnYdHiSDKRYGW39J2yYp02Ey2cGTbcEG12nxvhqHXfg92tayyJb/w4zw X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(8121501046)(3002001); SRVR:SIXPR06MB0608; BCL:0; PCL:0; RULEID:; SRVR:SIXPR06MB0608; X-Forefront-PRVS: 06952FC175 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(199003)(189002)(47776003)(106356001)(5001960100002)(110136002)(42186005)(229853001)(5001830100001)(36756003)(50466002)(101416001)(4001540100001)(5001860100001)(97736004)(83506001)(69596002)(33646002)(4001350100001)(5004730100002)(46406003)(76176999)(122386002)(87976001)(86362001)(77156002)(23726002)(40100003)(189998001)(68736005)(50986999)(19580395003)(2950100001)(64706001)(92566002)(66066001)(81156007)(5007970100001)(77096005)(46102003)(53416004)(62966003)(54356999)(105586002)(19580405001); DIR:OUT; SFP:1102; SCL:1; SRVR:SIXPR06MB0608; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; X-Microsoft-Exch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fC/10jXO8cW7RReh6nMifzAiL17FNwXOc?= =?us-ascii?Q?ABNxSDpA4D1n7sVIayV+f8UvOwIfU8mC79eGc5kMQsmE4yVA+QQVBWEDaKm9?= =?us-ascii?Q?cVC9x7RZ2ZWMovJilrJOwH0M1Emf7OZ8RYUIjkPF4rWFlR5G63hY+oDUYML3?= =?us-ascii?Q?5SSj/3uMS0g73L+tOks4nB1QvNKV74H5xcmkcIU1/gXJ7eqT/6SutfOM07Aj?= =?us-ascii?Q?hV5l/D5GvI5mdVrDv1CUVcgFWCzLyn2emRSUyRXholisoKvhH87dVU6cgkXw?= =?us-ascii?Q?lqBfDrCOoiEbHZHLt4wCr6g8A3EaaZ86pfbnQEZx7/vy8s70kF6gv4Vjdv3a?= =?us-ascii?Q?tBad9CdqJOgrfXLWnqRQx3jtTnol7JkRe1mG7fHqkRORPpIgj+Zg2oPkjjMt?= =?us-ascii?Q?Ha4RscoVSWGjIlkRyY=3D?= X-Microsoft-Exchange-Diagnostics: 1; SIXPR06MB0608; 5:leI+QRmzFbLbiktVF/eYI6m+UNS3gu+O8IBF5Ab8UPsv1zsQqqfDRKbNVujKwr+AEIAJg1I242kCb5bEGOlsxKjXMU1KeUlRFYE/gu4cZWPADl6xs2/s/BI4NvAXxaYrHT466EHDSBZZy5sQsXgB1w==; 24:VPvZ7lDNcPgI0DmYx5TNK+xgm+yXfvqY9a+D6UI4cSZ9mto0vxMnU5R/htHtrmQs1YS3FaXcufx3fv7X1KqBzhWrTD1whzYNVB2HkGxOuR4=; 20:sYm9Jx2GfHe37LjnpmwvLPQtbVC8SdMGWAvqwOLVbnGB41QL1CRigYhlT2NZzL8NWRVa+8ujKADOcqUUQ9ZWGdVKgPgVHj8RYUN2/pdsfI+4Cr6i/DLXIxs0Jp6kSIbE1U1sr125sc8lXFPfzuFRJkJVqf5yiH3H+fH4RNJRfLU= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2015 06:39:59.9245 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SIXPR06MB0608 Cc: Linux-ALSA , Simon , Liam Girdwood Subject: [alsa-devel] [PATCH 1/2] ASoC: ak4642: use *dev on ak4642_i2c_probe() X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto Let's replace &i2c->dev to dev Signed-off-by: Kuninori Morimoto --- sound/soc/codecs/ak4642.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sound/soc/codecs/ak4642.c b/sound/soc/codecs/ak4642.c index 4a90143..9af06d3 100644 --- a/sound/soc/codecs/ak4642.c +++ b/sound/soc/codecs/ak4642.c @@ -584,7 +584,8 @@ static const struct of_device_id ak4642_of_match[]; static int ak4642_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *id) { - struct device_node *np = i2c->dev.of_node; + struct device *dev = &i2c->dev; + struct device_node *np = dev->of_node; const struct ak4642_drvdata *drvdata = NULL; struct regmap *regmap; struct ak4642_priv *priv; @@ -592,7 +593,7 @@ static int ak4642_i2c_probe(struct i2c_client *i2c, if (np) { const struct of_device_id *of_id; - of_id = of_match_device(ak4642_of_match, &i2c->dev); + of_id = of_match_device(ak4642_of_match, dev); if (of_id) drvdata = of_id->data; } else { @@ -600,11 +601,11 @@ static int ak4642_i2c_probe(struct i2c_client *i2c, } if (!drvdata) { - dev_err(&i2c->dev, "Unknown device type\n"); + dev_err(dev, "Unknown device type\n"); return -EINVAL; } - priv = devm_kzalloc(&i2c->dev, sizeof(*priv), GFP_KERNEL); + priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); if (!priv) return -ENOMEM; @@ -616,7 +617,7 @@ static int ak4642_i2c_probe(struct i2c_client *i2c, if (IS_ERR(regmap)) return PTR_ERR(regmap); - return snd_soc_register_codec(&i2c->dev, + return snd_soc_register_codec(dev, &soc_codec_dev_ak4642, &ak4642_dai, 1); }