From patchwork Wed Jun 15 03:53:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitoj Kaur Chawla X-Patchwork-Id: 9177617 Return-Path: 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 3CA5B6021C for ; Wed, 15 Jun 2016 06:17:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2A61627DF9 for ; Wed, 15 Jun 2016 06:17:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1F12A28337; Wed, 15 Jun 2016 06:17:36 +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=-1.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 66D5E27DF9 for ; Wed, 15 Jun 2016 06:17:35 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 7E19E266C40; Wed, 15 Jun 2016 08:17:34 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 52362266A18; Wed, 15 Jun 2016 08:11:35 +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 9E3002651FD; Wed, 15 Jun 2016 05:53:37 +0200 (CEST) Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by alsa0.perex.cz (Postfix) with ESMTP id 4020926511F for ; Wed, 15 Jun 2016 05:53:30 +0200 (CEST) Received: by mail-pf0-f194.google.com with SMTP id 62so756557pfd.3 for ; Tue, 14 Jun 2016 20:53:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=dGHw4Y8ayLkon1eOSzgjOoEFEpaC+o1oVVBPA5ZpR+E=; b=oFVkbi8vjxRimfSxs++0ec5OdXBX+kJqrWKmFHZWfwAVFAKA11nkr6aqi5bCsOup6A ateRsHIy6Stbkl+Wejly8t9RZ1X6ePVOHkRQ5KokxDe1BWno99EDY93kQyJWA3WqlnaR 9u11B3cKh+uF5vlSWCBjpwgr8QphnlWDkQ1sh+tRbXLF2soiAww8xCTh8jQxdyTr0KLz 3NulJpxAGslu3VVqBxMCq/rv2EzTsGns+UIzOTJLOK3uC9ABiwva957kDzfvwAOQY0I8 Vy1Dnxk6nFarrm72KuNzoTMk9ExFS9p2cZpAlXJKpx2BrhMGR5xnuS/sbzA+3A+LxS6A +fTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=dGHw4Y8ayLkon1eOSzgjOoEFEpaC+o1oVVBPA5ZpR+E=; b=fV6zy+h6oqKO214z83mRnUxi9pPaDbaMIoJPcnYvGsWIO4oBKkylD7ydcMitXSvRRK 3ZxaC/GCQPPLfn9WwEqfNolpZzP8eNhsB+Np/myIo62O+sT+yMmTcr8bMEu6mPosq2EV Arlc5iKFAQeuZjK5L6EycuT3ju8oAXbZeaPUO9GRffvTMjHfABn2dFYgSIw4T49ZEgYk txNlJ4FIcbdbz/ejLoUBXSYN1RXO1MT4d1GUaTjAHhNVMARSo+QpaBFqahz9JEJafm6I 7QGbiFIyd0uyaDQmVeVHlGaGtWZf6pmQf3aj2SxgiffUaJDfuFu8GFvY2nuoHxYZ6b5I 8AgQ== X-Gm-Message-State: ALyK8tJebH6HqQc+m+wuVVQGJVREGZlK/ay9X2BBo1UECdOrbnbEQyuzqk1tgfZuaiCEZg== X-Received: by 10.98.192.135 with SMTP id g7mr1442630pfk.64.1465962808495; Tue, 14 Jun 2016 20:53:28 -0700 (PDT) Received: from localhost ([122.176.130.131]) by smtp.gmail.com with ESMTPSA id tb7sm48811275pab.21.2016.06.14.20.53.27 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 14 Jun 2016 20:53:28 -0700 (PDT) Date: Wed, 15 Jun 2016 09:23:23 +0530 From: Amitoj Kaur Chawla To: fizban@tin.it, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Message-ID: <20160615035323.GA5339@amitoj-Inspiron-3542> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Mailman-Approved-At: Wed, 15 Jun 2016 08:11:28 +0200 Cc: julia.lawall@lip6.fr, michael.leibowitz@intel.com, keescook@chromium.org Subject: [alsa-devel] [PATCH] sound: aedsp16: Change structure initialisation to C99 style 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 Replace the in order struct initialisation style with explicit field style. The Coccinelle semantic patch used to make this change is as follows: @decl@ identifier i1,fld; type T; field list[n] fs; @@ struct i1 { fs T fld; ...}; @@ identifier decl.i1,i2,decl.fld; expression e; position bad.p, bad.fix; @@ struct i1 i2@p = { ..., + .fld = e - e@fix ,...}; Signed-off-by: Amitoj Kaur Chawla --- sound/oss/aedsp16.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sound/oss/aedsp16.c b/sound/oss/aedsp16.c index 35b5912..bb477d5 100644 --- a/sound/oss/aedsp16.c +++ b/sound/oss/aedsp16.c @@ -482,13 +482,13 @@ static struct orVals orDMA[] __initdata = { }; static struct aedsp16_info ae_config = { - DEF_AEDSP16_IOB, - DEF_AEDSP16_IRQ, - DEF_AEDSP16_MRQ, - DEF_AEDSP16_DMA, - -1, - -1, - INIT_NONE + .base_io = DEF_AEDSP16_IOB, + .irq = DEF_AEDSP16_IRQ, + .mpu_irq = DEF_AEDSP16_MRQ, + .dma = DEF_AEDSP16_DMA, + .mss_base = -1, + .mpu_base = -1, + .init = INIT_NONE }; /*