From patchwork Tue Jul 7 04:57:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 6730041 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CA9439F38C for ; Tue, 7 Jul 2015 04:57:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0A14920778 for ; Tue, 7 Jul 2015 04:57:45 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 7465120734 for ; Tue, 7 Jul 2015 04:57:43 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id A6E7E26153F; Tue, 7 Jul 2015 06:57:41 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id D0CB72612D7; Tue, 7 Jul 2015 06:57:33 +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 7890A2612DE; Tue, 7 Jul 2015 06:57:32 +0200 (CEST) Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by alsa0.perex.cz (Postfix) with ESMTP id 0D9542612BD for ; Tue, 7 Jul 2015 06:57:24 +0200 (CEST) Received: by pactm7 with SMTP id tm7so106648691pac.2 for ; Mon, 06 Jul 2015 21:57:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=eNfvFHRH0PASX3TF+jZfuNsGAJ+HYI+yF8EiBBnRuhU=; b=F7FadN9B4rErKHvRPdYXygmQnRi4nYWXNm9YjUqzEhleLMKsT/ZNDQ1uxRW6SgsJVI rEbw3R6EhrGhb+MMabG+1Alg7HnUqf+1o12xNmyrh/DarYPAgViHPWi2KUCgycRczJWZ DrrBMzVxhsdJyiMnyFbm9K2zm7aW/Sw8/G8B8fPU4VeoO3YMnNv9f9WqH49Q8YxAAFrF 6Y9YiJ3ABdabJ/XInQcWE/F67MMy82Gzu/2z+RG/dWm5Z+b5yW7RwNYPng5aGWO5K4kO axQITpdAxlugfajc0TchHYzyG5Sfwpvq7f9SCwiJpZw1m9eB6SHtXVnC4MRZYh1SBrRU aGaQ== X-Gm-Message-State: ALoCoQlKe2hWB+ZUKYhUb7uOuzefQBR/l3PNqeF5VZXIfKO/OLsvapBBBXpApikRVkxTZBPwooeR X-Received: by 10.70.91.39 with SMTP id cb7mr4942810pdb.30.1436245043728; Mon, 06 Jul 2015 21:57:23 -0700 (PDT) Received: from phoenix (118-167-23-195.dynamic.hinet.net. [118.167.23.195]) by mx.google.com with ESMTPSA id or7sm20217183pdb.9.2015.07.06.21.57.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jul 2015 21:57:22 -0700 (PDT) Message-ID: <1436245039.1605.1.camel@ingics.com> From: Axel Lin To: Mark Brown Date: Tue, 07 Jul 2015 12:57:19 +0800 X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Cc: Marek Belisko , Liam Girdwood , alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH] ASoC: gtm601: Constify soc_codec_dev_gtm601 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 Also clean up the code a bit by fixing indent. Signed-off-by: Axel Lin --- sound/soc/codecs/gtm601.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/gtm601.c b/sound/soc/codecs/gtm601.c index 12d15e5..0b80052 100644 --- a/sound/soc/codecs/gtm601.c +++ b/sound/soc/codecs/gtm601.c @@ -51,7 +51,7 @@ static struct snd_soc_dai_driver gtm601_dai = { }, }; -static struct snd_soc_codec_driver soc_codec_dev_gtm601 = { +static const struct snd_soc_codec_driver soc_codec_dev_gtm601 = { .dapm_widgets = gtm601_dapm_widgets, .num_dapm_widgets = ARRAY_SIZE(gtm601_dapm_widgets), .dapm_routes = gtm601_dapm_routes, @@ -80,10 +80,9 @@ MODULE_DEVICE_TABLE(of, gtm601_codec_of_match); static struct platform_driver gtm601_codec_driver = { .driver = { - .name = "gtm601", - .of_match_table = of_match_ptr(gtm601_codec_of_match), + .name = "gtm601", + .of_match_table = of_match_ptr(gtm601_codec_of_match), }, - .probe = gtm601_platform_probe, .remove = gtm601_platform_remove, };