From patchwork Wed Jun 20 06:07:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 9465 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 6D01F23E1B for ; Wed, 20 Jun 2012 06:19:22 +0000 (UTC) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 37ABBA186F8 for ; Wed, 20 Jun 2012 06:19:22 +0000 (UTC) Received: by ghbz12 with SMTP id z12so5812411ghb.11 for ; Tue, 19 Jun 2012 23:19:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=vqgpTDHvIT1haFW3fnctt6K8HvzieAfdmpQb9JHAAKY=; b=HxYxwFyngvVsJIxS2FZWGMRUdMrtaeVpM+9GAbE4//6wyJtB3hoK9isKh63Me7lOnZ x54nRsLOYBSbZnjVynTM2JJBAlBw5xNuLUD3HARRoqPHi2dCBoBHh39ONq0cjGWKM+lI zyonB/MP8OEBrav/6oHvNG3k3ZHK6sj35hMpVueSgzFyJmsBHdmQe/9v9Z/I2T7Es+XZ dxc3mprX0LutCYoErj5VhYbuoMmUO6Ek4rWg2COkxkT9qGdyYN5nVTC6nwYvQfgO3hw6 0pUkZ6WIpnPWx4NIHZZVDCJdClsckAos5tdmlljR8TZt0r6ynJsF7fbUuU1F/gbJ7r+z YiMg== Received: by 10.50.87.227 with SMTP id bb3mr3417195igb.57.1340173161172; Tue, 19 Jun 2012 23:19:21 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp163562ibb; Tue, 19 Jun 2012 23:19:20 -0700 (PDT) Received: by 10.68.233.39 with SMTP id tt7mr73668033pbc.124.1340173160399; Tue, 19 Jun 2012 23:19:20 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id tm4si16858862pbc.62.2012.06.19.23.19.20 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Jun 2012 23:19:20 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by danh15 with SMTP id h15so10769118dan.37 for ; Tue, 19 Jun 2012 23:19:20 -0700 (PDT) Received: by 10.68.241.228 with SMTP id wl4mr71407627pbc.51.1340173160027; Tue, 19 Jun 2012 23:19:20 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id rs4sm30747860pbc.0.2012.06.19.23.19.17 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Jun 2012 23:19:19 -0700 (PDT) From: Sachin Kamat To: alsa-devel@alsa-project.org Cc: broonie@opensource.wolfsonmicro.com, mr.swami.reddy@ti.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] ASoC: lm49453: Fix compilation warning Date: Wed, 20 Jun 2012 11:37:39 +0530 Message-Id: <1340172459-29172-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQn63uAz1dd8VHiovvmDPhbdRuySukY4kSwNMMMw6NwQm+5a0nN0nhk2A5l5NWk5Z08iwzoi Fixes the following build warning: sound/soc/codecs/lm49453.c: In function ‘lm49453_i2c_probe’: sound/soc/codecs/lm49453.c:1510:24: warning: passing argument 3 of ‘snd_soc_register_codec’ discards ‘const’ qualifier from pointer target type [enabled by default] include/sound/soc.h:333:5: note: expected ‘struct snd_soc_dai_driver *’ but argument is of type ‘const struct snd_soc_dai_driver *’ The struct snd_soc_dai_driver lm49453_dai[] has been made non-const, in line with other snd_soc_dai_driver structure variables in other codec files. Signed-off-by: Sachin Kamat --- sound/soc/codecs/lm49453.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sound/soc/codecs/lm49453.c b/sound/soc/codecs/lm49453.c index c1bc945..99b0a9d 100644 --- a/sound/soc/codecs/lm49453.c +++ b/sound/soc/codecs/lm49453.c @@ -1357,7 +1357,7 @@ static struct snd_soc_dai_ops lm49453_lineout_dai_ops = { }; /* LM49453 dai structure. */ -static const struct snd_soc_dai_driver lm49453_dai[] = { +static struct snd_soc_dai_driver lm49453_dai[] = { { .name = "LM49453 Headset", .playback = {