Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758655AbcJQIdC (ORCPT ); Mon, 17 Oct 2016 04:33:02 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:49558 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757748AbcJQIcx (ORCPT ); Mon, 17 Oct 2016 04:32:53 -0400 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'";a="223078514" Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Message-ID: <87oa2j4c5j.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 03/23] ASoC: simple-scu-card: code sync: tidyup props/link naming User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Rob Herring , Mark Brown CC: Linux-ALSA , Liam Girdwood , Simon , Laurent , Guennadi , Grant Likely , Frank Rowand , Linux-DT , Linux-Kernel In-Reply-To: <87shrv4c8x.wl%kuninori.morimoto.gx@renesas.com> References: <87shrv4c8x.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: Mon, 17 Oct 2016 08:32:48 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0117.jpnprd01.prod.outlook.com (10.167.154.35) To HK2PR0601MB1442.apcprd06.prod.outlook.com (10.165.182.148) X-MS-Office365-Filtering-Correlation-Id: 85ad0de6-6c9d-4346-f163-08d3f6682d7e X-Microsoft-Exchange-Diagnostics: 1;HK2PR0601MB1442;2:9MiRws9rlSW9wv48jKa+4P80PAzUtu+aExMrLQpsa8S6xCkJULuIn7g41delLQGG5b076jRkdqutxMD7j9Vh4bkXT8LKqLqAhVQLBx4MqTSdMdPBywvBj0+Py53WIS4iMggTneq7I8Sk4SpyNPizukoD+ncm8Dqgq6rFOk8bfOTFu6APDG1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AZPw+tmXfPSVM2ImJnKGE5MO+rvaWCeXCx3NQyPUM5mn2sTAnLyupHpCsduqDSQLOP4Yc6xD2tB4k+qyhyCuyGPwUKLFzhSkpYkZ4GwZRBwLcZZ1/t3kcS8SbGsPucvkiFEdmgdtin359saRnbpFB1Xmy/7qnUQIjnAdosM5cCNsAhr0JU0WJLb0shShSaLEzQBnqHuh/MSYv3AZmSVCQNJUSq0ryk5Uk+2NsNGO/70aNeEF3iZXNm4iQqkd4xR+g==;20:ZYBd5xJQTQa4M+JkA8nqcf1cqNX6ZMBZS5L20PE/NR6DCuGc3v+vMm/MhhZgVFcbMbXfwOCaiTXZN0S6HUaUG64k22pdasagJzWJuZGVB+0X282+uVUVyxol0BwyqQcYpZ/7CFjiTmxBx+gaNsYaUNjc+nibkt8ZPXnqBG/LTe1ILZSmMBfJiiXWtcNGspPsI8I5P2yKq/46HJiTy+PGoi0jPR2lifnUGzyjyvVgmJr/soHkX+BomoP1MrJl+16QARVbEGxgrmCT5NRAw3uEW6mfnRpE79x9xx4k6QAmRe1Jj6CGp+JRcQbWO8OSNN5bkmCFsrbS010CRke6SwKJTrJFEt1CzLrkRiURxiHpPzdkw8PNu8JCwBNES5FQ8PMwT22nZ5viEHJNHmfsy5BctA6EQp/0B4s7tRNi5038n7JvuGIvdrTHlADJQ5ExfqLHvmHuB27rq2A5bAHjPaROe9RExU+9b6Yh6oGZlWIT8d2g1SKtgy/lvJImQ1jdiJ0+ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026);SRVR:HK2PR0601MB1442;BCL:0;PCL:0;RULEID:;SRVR:HK2PR0601MB1442; X-Microsoft-Exchange-Diagnostics: 1;HK2PR0601MB1442;4:8Lv5T/s8vt/RmZOdrEivgu1g25mwj58Q+80hPE5vFN4Te6ixJsbN+6WYUPUzMEKRD6/oSVvyXq/Jy90FIk+J0mrjg4WRF8UI6firoV1EMr4FawwHVNQyvaKPCMzpU2V423H6tcUYKzCELm9vCyEGaHewg9dHKOfijT5PUJPf1wLYx009oZ/boZF4zGzChSPH3N6PWGQGC2scmzRDHokVU4Abe2dxiyWsVE677RTEdiSWVZBB0v3UznxpTDzkp3YzowCaelWPr6uFjdPBdAiPv0IfoFnGTYqBwFBYkt1cbpedUKnyIjESPaOmStK+/fzING0JZwlQa0Ike0Wn726kixPWwbfZ4p47RtRGjq2U4SUgXYlADzWv1FquPA4Ij4vT87TzmAebY6xOIDTaeI3LnEu4GP3EniWAWx6tZmSVPC4= X-Forefront-PRVS: 0098BA6C6C X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(189002)(199003)(8666005)(230783001)(7846002)(81156014)(53416004)(23726003)(81166006)(68736007)(42186005)(101416001)(66066001)(77096005)(586003)(106356001)(86362001)(305945005)(50466002)(3846002)(6116002)(54356999)(2950100002)(69596002)(229853001)(105586002)(7416002)(19580405001)(19580395003)(47776003)(83506001)(92566002)(189998001)(7736002)(5001770100001)(76176999)(33646002)(50986999)(97736004)(2906002)(4326007)(36756003)(5660300001)(46406003)(4001350100001)(8676002)(7059030)(16060500001);DIR:OUT;SFP:1102;SCL:1;SRVR:HK2PR0601MB1442;H:morimoto-PC.renesas.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;HK2PR0601MB1442;23:98eZ82hlGq/Bom/WHCHDH6y4BJ9C7zZEE8w459j?= =?us-ascii?Q?aJf5qJv3/5AO5wqiAPSFnw3eDPu7308T6Da4h7TeIPW6kpBkSE31x3/RFso5?= =?us-ascii?Q?ZwGG7kOzZcLrrpEMJz/FPUg3CBrcrpZt7MYkTo/kBzK16D6gZGgvutNrn3H3?= =?us-ascii?Q?pSNUuZMqaHE0CQdBzZmysujet3ce1aSU99r64orJorCawo653JR3FZimm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cQccGlRydk9keIy3/OIZXBt1B1XrvX9Ijita/hlUc90T7l?= =?us-ascii?Q?zjTxNuAR1PLZdxGKHqRlfPRJeUUvw5paQY2Nu7dOu5ucaFfCcvXPpYrirqR3?= =?us-ascii?Q?qoWBOz0GV+kI2UK3ckPTpRZWxkWlX6PfvcRvBCEaZdzO+RNLl38z+oND47yD?= =?us-ascii?Q?TJHoNMVGjSZcnWDkJRoHUmXfqfuKd8nQk3P/ANFwv?= X-Microsoft-Exchange-Diagnostics: 1;HK2PR0601MB1442;6:fEY+z7QVATif1S0QewjGaTs1t6QDfXeGf3DQTYqMR6D1kQdFIpPcujWaPb7SEUJ36GFAUlXicsiqIINGoIMAb+20T0yXSU9Jty6wt9V5QxK5a7HXYW4IjOVb076lbO8Wc4ZqkfSUWg9fBiFOt0c/vvWn8jzKP/CbuhueFHJDYUlps4uPJnKEmgQY+k/vu55i5MtsyS3vzk1J/zxjFey5v7TPpkFYMiXKwrT4JXyKao5HmMjGshbvVHzjARojIwpPaY5/JQDPKnIjj1gdRd2DepAYXSTx9aKQ9ZjaNaRgU1JhM1M92IjTY1zquxIhsGDZAQvE7u0+/bVaU4JIvyUy9+pF+0POlhSM9RuEVybbulo=;5:9a5YDYEQGMgKyX/hQi+u1sYfzSwUmBB33YMhg+YhakTETdELs2qtSU0dbq4oeCd0xxtFXZfeGO8p+VWPL/ZyCefmTLWML5w4GQpYXHnxZByt870lVvPooWaUdCDX/uUHLUx/v5KpZf3haY0FpRsow8Qu5cWmCbVYJ4Ufsxg0gfs=;24:E2H+ZAzpgifVAvTDo9lZ6REsOzbsh8Wc6md1KDQ2ADD4Ap0TewxSx+GnA5EOLa7G8dw9WtSD/sb74m6s8x32xXSqy/N/2i/xfb/7rg8J19s= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;HK2PR0601MB1442;7:gqWg5qCRRhO8XEK608IxTfc8CmNdcNGUUoH1saRgfJ42n1XNx2Uv3VYqpbGAA+rCk6lgkpcfcnRP6+Q6h5+E+Mi6/4QDE+trb1kt7Mjx8X/LV925LHZ3LzxrgV8B5gHjBwAChM8UqPFq3bmPzSNxQoWn6hz4CMGQyKZ/2C5L5h/86iezljvWDD0hpje4u7RbmiiFmlQEju8hJxcP9Emff76sZHnLObSpEhQ+GSkHKJStLOXapMM5Cskw/9GNPscSDa5nNMPAvLsvzo2MR/dUUijIGN4MyZqzN/3GUvR6Oa0C1BHO8pvkfgFQOpj+szzEwjg7yHtQ2O34Ox7OC7Li2KG1PIPcjr1H2a2LbZp3NNg=;20:G/s1R1hpuu/2IY1GwcIyl8zUxqg+U4iBkUzX7ozPa0bFIl/o7HQFV4hNv7uSRusIrWg2B5BcFGkXRn2SyEFi4Vqc/GmZhrQEZGM7+HClh6zchBisS1YUYgRzdi1EUt+9VEZrZLDXvKXWHK0vIlYtoLylEuqjHYAOIKob75D6YmY= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2016 08:32:48.1350 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR0601MB1442 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1873 Lines: 51 From: Kuninori Morimoto simple sound card family are using very similar style, but because of its historical reason, there are small differences. For example pointer style, function name, caller postion etc... This patch synchronizes style to other simple card family so that be enable to easy reviewing. This patch uses dai_link/dai_props instead of links/props. Signed-off-by: Kuninori Morimoto --- sound/soc/generic/simple-scu-card.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sound/soc/generic/simple-scu-card.c b/sound/soc/generic/simple-scu-card.c index 1704b18..348e9a7 100644 --- a/sound/soc/generic/simple-scu-card.c +++ b/sound/soc/generic/simple-scu-card.c @@ -254,8 +254,8 @@ static int asoc_simple_card_parse_of(struct device_node *node, static int asoc_simple_card_probe(struct platform_device *pdev) { struct simple_card_data *priv; - struct snd_soc_dai_link *links; - struct asoc_simple_dai *props; + struct snd_soc_dai_link *dai_link; + struct asoc_simple_dai *dai_props; struct device *dev = &pdev->dev; struct device_node *np = pdev->dev.of_node; int num, ret; @@ -267,13 +267,13 @@ static int asoc_simple_card_probe(struct platform_device *pdev) num = of_get_child_count(np); - props = devm_kzalloc(dev, sizeof(*props) * num, GFP_KERNEL); - links = devm_kzalloc(dev, sizeof(*links) * num, GFP_KERNEL); - if (!props || !links) + dai_props = devm_kzalloc(dev, sizeof(*dai_props) * num, GFP_KERNEL); + dai_link = devm_kzalloc(dev, sizeof(*dai_link) * num, GFP_KERNEL); + if (!dai_props || !dai_link) return -ENOMEM; - priv->dai_props = props; - priv->dai_link = links; + priv->dai_props = dai_props; + priv->dai_link = dai_link; /* Init snd_soc_card */ priv->snd_card.owner = THIS_MODULE; -- 1.9.1