Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754840AbdHZAlx (ORCPT ); Fri, 25 Aug 2017 20:41:53 -0400 Received: from mail-cys01nam02on0131.outbound.protection.outlook.com ([104.47.37.131]:30527 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754324AbdHZAln (ORCPT ); Fri, 25 Aug 2017 20:41:43 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=RyanS.Lee@maximintegrated.com; From: Ryan Lee To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, ryans.lee@maximintegrated.com, kuninori.morimoto.gx@renesas.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Cc: ryan.lee.maxim@gmail.com Subject: [PATCH 9/9] ASoC: max98927: Changed device property read function Date: Fri, 25 Aug 2017 17:41:10 -0700 Message-Id: <1503708070-7906-9-git-send-email-ryans.lee@maximintegrated.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503708070-7906-1-git-send-email-ryans.lee@maximintegrated.com> References: <1503708070-7906-1-git-send-email-ryans.lee@maximintegrated.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [204.17.143.20] X-ClientProxiedBy: CY4PR15CA0022.namprd15.prod.outlook.com (10.172.74.32) To BLUPR11MB0835.namprd11.prod.outlook.com (10.163.217.145) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 10fc42ce-5860-4bd5-34c7-08d4ec1b360c X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BLUPR11MB0835; X-Microsoft-Exchange-Diagnostics: 1;BLUPR11M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oDIu1XTnlHNVcsxjFyStqW0rdeP+tJqBvwxwwIlfL8h/bygXq/QUM/eeq2TpPE17u2nmot/X+kmuT38embI/C5pcjkjB/Y8bFOkw76SMO7z2UCr3L8u54x9CSn81KQs8GUsJ3Lxnxkvjvb1uxBXhYusiOyzjE82bkciTHRCQTCmc+sDewl1uwtIyS8TadQZqE4OuB775JT7GHV7Bdw10RS110AJgdfFNsQVM+wrdRHkQ432it80v/ITG86tIM2xcdkf38gkHz6eysHu4AmHkiqx7V0kqqfvXxr22RcKSXD1OXhsbk4NQqvS6G1N/79XiozH6TeNCuKWWNf/wS/GipFPxTnQSd+Yb;4:JuyUSLOzciBUals96aGQWApj1whcE+TXav3rJxGhLoOOCePPTyZwbYMm+iWNrhgGV6jPPljjO8d8aBIMSclhUY7NvXVsaervTR25QKR6WWj1Cj17bm1+z6zVU0w2aNtNyPuYspKOhqhiVGNEiwL3CPQf/SgXbaAdV2qMQgRoPbvjvBk1mBF5okakRkc1bBS3gOl0pJ0UfV2bS+RKQ5P+7MX53CMLoIO5+vw5cQRVWyBQkD6BCkZS+XXYdmEjjXdMIUFGnAoORISEc6qxa90DyO0gSEykZ1VrKdYwTPTxIQo= X-Exchange-Antispam-Report-Test: UriScan:(108721460000369); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6041248)(20161123564025)(20161123562025)(20161123558100)(20161123560025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BLUPR11MB0835;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BLUPR11MB0835; X-Forefront-PRVS: 04111BAC64 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(7370300001)(6009001)(39860400002)(189002)(199003)(4326008)(72206003)(97736004)(81166006)(110136004)(81156014)(8676002)(53936002)(189998001)(66066001)(25786009)(478600001)(86362001)(47776003)(305945005)(48376002)(7736002)(50466002)(3846002)(50986999)(2906002)(6486002)(6506006)(6666003)(6512007)(68736007)(76176999)(101416001)(53416004)(50226002)(5660300001)(6116002)(2950100002)(42186005)(69596002)(7350300001)(5003940100001)(106356001)(105586002)(33646002)(36756003);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR11MB0835;H:ryan-ThinkPad-T430.maxim-ic.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR11MB0835;23:QYN9HXH1nI+Zuoa4G6jR1gMxEAAkKtKMDQ7paOYxj?= =?us-ascii?Q?lrEnn2e5uSrPpCmG4ym5cSJJ6DD7tNgJO42TPlSvx9OAtgJNs2+E+shT1P58?= =?us-ascii?Q?m+EoaGREA6gZk/F87SnXLMFyuLdYRFw/rSSMTgggksE43PS1mD09GqSCO0qz?= =?us-ascii?Q?puq0xDoE5bX9Z8A92cY669RG2UzLSo2IqaO8EqII3eyEnxCyKYXrAy/PDPLR?= =?us-ascii?Q?JWXGqxYZNchZYCINjos8vKHG0qLRnAxdPsvMswXb1csntc5Y3rOVapZLhXPt?= =?us-ascii?Q?/4WBDjRQSyXx8YGb8O99/CkNIZvhZro4D6KM/5eFIpIWSPDyUxQ86W01OG5z?= =?us-ascii?Q?cP0wVYEvr6F02ptEK3PkKbkNlGYXB6WwT7rPrW6sHSqoERBPXmXhjcqrSOGm?= =?us-ascii?Q?PtRLqc36p5vGZNUVSHFyg2fSVVSmq9liFKqqnnjDZ+i+Y7tkvx53NssD02wI?= =?us-ascii?Q?IReVzR1DSzt21u54B6PqXTXGyaLefStQOokPfU9wquP7Me26qhJJ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i6wR8SlUQw/MTiU3Et9zav+HqJ39F8EBnwYLFs3NCsx2huhNDW/10Zq1a2V7qMrx07yoFAoo18jt1rjnQpbPw1E1XGcEv8kLC3i5E5NUbhDR05h3OEgr1DWktgqwP/K9505lg==;5:4NdlsNeMR0lqqZwDPOjYQKxRgImBYLcKHxpiG61tgVSui0fTSqdSKpPrU3R245f7MYOzZckRs6HOc83cVaClhrRkOmvOsavNBugAM9wph21+B/agHWtr2QRJPRWy+hwDJIJJfeo85uDH4cRI2y/lWw==;24:887v194MeJZPOW9a4Z28ewi+5ZZHkG0lCe2Q7ojw1Z4eNAItS5rJBjmKqGYDhBu1fBPJtipWaOo/nqtOM83cZfg1jkqPIbIeY79x6U9H6kA=;7:TSV/aYmpfBkg+VEvJP9wWLKgvOop7v9SQCGQ0zL9sBoXb1MvkELi5E7IvTScqfw11Y1BlYnRPjksMG25Szye76Fr07xnh1sQSkP4Ad1Freg23TEMe8C4zsjsRaHvTyJg+lwUDa3g+7q3LEASyZeBJWSlLHf5Xcqx3js/8S0akQtH4cwLX55bEB/Fg6GEEG5uXxyqWDV3BUpro8AjxnxSRl0Mya5Wi3p/v8kR+pOfZ7I= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: maximintegrated.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2017 00:41:37.2530 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR11MB0835 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 985 Lines: 32 Signed-off-by: Ryan Lee --- Changes : Replaced 'of_property_read_u32' by 'device_property_read_u32' sound/soc/codecs/max98927.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/max98927.c b/sound/soc/codecs/max98927.c index f944659..4867f78 100644 --- a/sound/soc/codecs/max98927.c +++ b/sound/soc/codecs/max98927.c @@ -861,14 +861,14 @@ static void max98927_slot_config(struct i2c_client *i2c, struct max98927_priv *max98927) { int value; + struct device *dev = &i2c->dev; - if (!of_property_read_u32(i2c->dev.of_node, - "vmon-slot-no", &value)) + if (!device_property_read_u32(dev, "vmon-slot-no", &value)) max98927->v_l_slot = value & 0xF; else max98927->v_l_slot = 0; - if (!of_property_read_u32(i2c->dev.of_node, - "imon-slot-no", &value)) + + if (!device_property_read_u32(dev, "imon-slot-no", &value)) max98927->i_l_slot = value & 0xF; else max98927->i_l_slot = 1; -- 1.9.1