Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751411AbdH1Xc1 (ORCPT ); Mon, 28 Aug 2017 19:32:27 -0400 Received: from mail-cys01nam02on0125.outbound.protection.outlook.com ([104.47.37.125]:29802 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751331AbdH1Xbp (ORCPT ); Mon, 28 Aug 2017 19:31:45 -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: Mon, 28 Aug 2017 16:31:01 -0700 Message-Id: <1503963061-14763-9-git-send-email-ryans.lee@maximintegrated.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503963061-14763-1-git-send-email-ryans.lee@maximintegrated.com> References: <1503963061-14763-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: BN6PR16CA0010.namprd16.prod.outlook.com (10.172.212.148) To SN1PR11MB0848.namprd11.prod.outlook.com (10.163.208.146) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 369a9ed1-7389-40f0-6791-08d4ee6cf0b8 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(48565401081)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:SN1PR11MB0848; X-Microsoft-Exchange-Diagnostics: 1;SN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t/hJD54sdPd8UN87HtulkZpyhqOlesO6IzIrOJcoEPfBnCIb4ebcMwiHsQg3MZOG5E1drBsAMg4vhsp3YVXSYukdv6toVYs8DRvvRyaIzE4j8PGZvAlb1l6BRRgyl5xVJp5YhCJfnlBLSNIPMhX+Bp5BlrEcFboZt30Oryc7e96+DYep6F9YKmpFIAz/JKca5iBYKes/4cl1ehqcfK7fhRPxdO/Bm7/XiehEV7TnjIdzqLD31xlTd8V99D6dgaKg/dGwNIaaTT4GjP2wmeWLb8M0Fr9b7X6hWnQkl0BpD7fAQMmqQa2eW3cp+kAPWBbQFuOfzj5j0EmDxWEQTh+2W0F4GSS9IdGXulF6K/1Sru4L6uiolj;4:IpRms3HaYla7tjAb73lG+H9xdvEJ4zTNOqlBZ0ZkQrfLjm4DYvvV1t5NOU8591jm9pJ3/tRC6BCDX5wbkWPUOT6pKzJQZWDXYdrfzOjKSYWzoy4DsJnAHMTa5ya9Mo4io+zuuE0DX9KVKQmXkPpNBIIpBRQNr7onEKF9782ifBSMzSqlMZ1K/pqdi2FqPaKDUy4LysLRt2OOEL3iuwyXWqWlfkbUyv++y20bNuyYsmpwFHUrabZH8RMhGfNcuMcs9076/lgVQ3UtQJYZOVV7PyW1Gs28UtQSNOvydL7P6B8= 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)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(20161123564025)(20161123555025)(20161123562025)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:SN1PR11MB0848;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:SN1PR11MB0848; X-Forefront-PRVS: 0413C9F1ED X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(7370300001)(979002)(6009001)(39860400002)(199003)(189002)(2950100002)(101416001)(81166006)(6666003)(6486002)(6506006)(25786009)(48376002)(8676002)(50466002)(81156014)(305945005)(97736004)(36756003)(72206003)(69596002)(7736002)(5660300001)(53936002)(50226002)(478600001)(86362001)(50986999)(76176999)(2906002)(6512007)(53416004)(42186005)(110136004)(33646002)(106356001)(105586002)(189998001)(4326008)(3846002)(5003940100001)(47776003)(7350300001)(66066001)(68736007)(6116002)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1102;SCL:1;SRVR:SN1PR11MB0848;H:ryan-ThinkPad-T430.maxim-ic.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR11MB0848;23:cyoADE98lIKlu/OaskRLh3XNDibka06kHrBfFiy+K?= =?us-ascii?Q?3/9vbUSFKFMnBb5VVOvaA0wPAQJ/zrKKyvGHoy7gP0GLZfjZNjerV2off9/U?= =?us-ascii?Q?sZGNlQ/FhmLJEkV0McV6gllWPMXrTmgSvHw4pIoEiuPKRJV9xGYwpBkXHay+?= =?us-ascii?Q?CgAKVvuM7hLJ4FjkkApRzU2IrWI9w4VALAt1HGqs+YN0/ftesYgnfWG7zaMF?= =?us-ascii?Q?b+YbMbZ+rY817KEIsFCS3OioHKeS49zzgjynYcjXT7l0Pa1CnCtk1L4b8oei?= =?us-ascii?Q?wBoHgeoxhT3rTg5SYGQsN3Q5k05zm4dNrn9P1FdSgb0Afl9D4ogKG5ZFA/JI?= =?us-ascii?Q?3Lo/FOLYLrekaSzmxMoa+8MOg6HVVlsvHiOlItp5GX1Gd7B3warBHelHNo66?= =?us-ascii?Q?EcrBjbhcsGIkdfbkbLk7Yi26/+1p/r22g9OHIEUNDCOjLNzd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X43vb9mNZBWSBqc15taTZOnHc8jm1P1+/t8di0jNdjU2myCtfca5UsQyu8KEG/iaoQvu3Orj//nTecIL+yzyIdG6XG+TtG2bLU0jV/tJJr+E2kVSVjhJWsIa/qp5IC6ioY/xKbYa5EXQ2UN+YT4u9QsNVs6PYLGjjQZ41v1ePrcDcuCk25GBkzSeZoM6QmFh9bQM53wa9ZirUXWpFlWRZjq7w/mvRAZrXiyoo0+C/Dl2E1uBIuYL5bvDMzuPcc7CJUGsBXPbzW7aYUMm6o6jCEkO/xoUF3LHvfQktabRmJV+mvbLUUPkhg==;5:hGlG/8swgfLe+bHk7v5aXKk7ozUDTvFmmY9Wr0VxnpR1v7ww8ES6JJahfPHwSY+05CgR8eweEYXSZvCPOo3d67uqXnB9H1MzzmevQMpYGVOlCeSKuHq0srPGXGsUrMPIlHt1YNQ7suSRPjWoC8STMw==;24:q9c3JucBrOIO4Nk0LjjKa30BA8hwBNQ+7T0bB8Kaxc2zWzlgyEdZ7qzcfwRPAkVulaJCY2DOkLTfA8ctQWUW0/JSD4tu2b4muFgFvwDPj0Q=;7:UVe52FpY5Ltfjpk5x7g1Ujc2HhJnBJtjjggi4WF2zJLNeqOKi456BRUXQ2yZHnjXP61kQhfcy45CtUL8aQ1Zs0WGT2mMuoPqTMlHEGIMMIvo2NiQ9pEk5naQIyunMvt3iMg3+TEaNbChqz7bT3pehaLDd0C94Z6bYLDP3VdVRHF9VzXkwVNRCY4OMnmM1HbHqXta2ZwamEDnkoMiQMvTxXLjfcwHRVt/AwEL83ku8mk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: maximintegrated.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2017 23:31:41.7796 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR11MB0848 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 912 Lines: 30 Signed-off-by: Ryan Lee --- 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