From patchwork Wed Jun 14 18:21:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 105571 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp424245qgd; Wed, 14 Jun 2017 11:22:17 -0700 (PDT) X-Received: by 10.223.172.15 with SMTP id v15mr1048274wrc.84.1497464537543; Wed, 14 Jun 2017 11:22:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497464537; cv=none; d=google.com; s=arc-20160816; b=T+3YDFZpgqcnTvHrKEqWsFURlTyIggd2XwSjx23MgBRwa8CicK+7rEvwPc5CwZkjIh MrGDNQEFphWoqXinHcNcZ0VgMLFQUS1XXp41MO69tXut5bxEsjtIS/Ao/6E+h7h16nBj qscyI58FvazlJNVrULIVhu/YICn/NbVqAAcgnDaTf77OAxRrWriz/vPaIuYsW0ugvV08 IGufNRyTiC/tahvNGVGb663rYDb+Y3KKIsdeFnxy/YzvX0/xQ8gsB3dcGrr7/dMgjQgI O5lLLKNeFn5MV+F9gIbiXj+nI26Ss8KivbHHdu0t5Zdia8Pm/rDBJrHtSGzycGoPjF9t J1HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :delivered-to:arc-authentication-results; bh=T0SSNSU96jZvgvm9MGKzR0pkJSn70DN9LwpKxuWFl8o=; b=SX+QYgMN10mymeGJyM0TfdUNtYPiErwk27KjzP4sjCePRqzzsDTWcyR138nkNvJn12 nDWFyqDYxg4NnO6sKxGJlgKST0xSp94mHU+5tG5O2IsQYt9UqrTWOJzQe95fCSnwygmB QUP3Hgxf7uUPmYtRMRlW4BXyyT++45faT0Pt/eM6QUSnxc1golqJI98jgETJnS7WdEYJ I5TbUTW/kVayc3obDH1WO6WJPXXP4EEprfnzkLf7jnBD8LYqr5ureQGJ+fEtWj7iz5KV Rmd/qeltNqKe7fqK9yYHNyj3NSLHQj3n9dh29JJpGW1DIm7/qFjYdXUyfj5kZTW0DL4Y xd1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id 7si756388wrs.220.2017.06.14.11.22.17; Wed, 14 Jun 2017 11:22:17 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id CE2282672C5; Wed, 14 Jun 2017 20:22:15 +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 3083326731B; Wed, 14 Jun 2017 20:22:14 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, SPF_PASS, T_RP_MATCHES_RCVD, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mezzanine.sirena.org.uk (mezzanine.sirena.org.uk [106.187.55.193]) by alsa0.perex.cz (Postfix) with ESMTP id 933EE2672C5 for ; Wed, 14 Jun 2017 20:22:09 +0200 (CEST) Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by mezzanine.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1dLCva-0001m9-1G; Wed, 14 Jun 2017 18:22:02 +0000 Received: from broonie by debutante with local (Exim 4.89) (envelope-from ) id 1dLCvW-0002DO-Ug; Wed, 14 Jun 2017 19:21:58 +0100 From: Mark Brown To: Harsha Priya N In-Reply-To: <1496885261-10771-3-git-send-email-harshapriya.n@intel.com> Message-Id: Date: Wed, 14 Jun 2017 19:21:58 +0100 X-SA-Exim-Connect-IP: 2001:470:1f1d:6b5::3 X-SA-Exim-Mail-From: broonie@sirena.org.uk X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Cc: alsa-devel@alsa-project.org, Harsha Priya , vinod.koul@intel.com, broonie@kernel.org, tiwai@suse.de, Naveen M Subject: [alsa-devel] Applied "ASoC: Intel: Convert all sst_codecs data definition to c99 style" to the asoc tree 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: Intel: Convert all sst_codecs data definition to c99 style has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 9a90c972b6e5814a5f928f8d5a3d145fa50988b0 Mon Sep 17 00:00:00 2001 From: Harsha Priya N Date: Wed, 14 Jun 2017 10:32:18 -0700 Subject: [PATCH] ASoC: Intel: Convert all sst_codecs data definition to c99 style C99 style struct initialization helps in readability as well as initialization of variables not specified as NULL. This patch changes the struct data definitions in skl.c that were not in c99 style. Signed-off-by: Harsha Priya Signed-off-by: Naveen M Acked-By: Vinod Koul --- sound/soc/intel/skylake/skl.c | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) -- 2.11.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c index 4ebae850c559..6a79fc759fb4 100644 --- a/sound/soc/intel/skylake/skl.c +++ b/sound/soc/intel/skylake/skl.c @@ -876,10 +876,25 @@ static void skl_remove(struct pci_dev *pci) dev_set_drvdata(&pci->dev, NULL); } -static struct sst_codecs skl_codecs = { 1, {"NAU88L25"} }; -static struct sst_codecs kbl_codecs = { 1, {"NAU88L25"} }; -static struct sst_codecs bxt_codecs = { 1, {"MX98357A"} }; -static struct sst_codecs kbl_poppy_codecs = { 1, {"10EC5663"} }; +static struct sst_codecs skl_codecs = { + .num_codecs = 1, + .codecs = {"NAU88L25"} +}; + +static struct sst_codecs kbl_codecs = { + .num_codecs = 1, + .codecs = {"NAU88L25"} +}; + +static struct sst_codecs bxt_codecs = { + .num_codecs = 1, + .codecs = {"MX98357A"} +}; + +static struct sst_codecs kbl_poppy_codecs = { + .num_codecs = 1, + .codecs = {"10EC5663"} +}; static struct sst_acpi_mach sst_skl_devdata[] = { {