From patchwork Tue Apr 15 20:24:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 3995421 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DF2E39F336 for ; Tue, 15 Apr 2014 20:24:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0ED2D20222 for ; Tue, 15 Apr 2014 20:24:51 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 28CB42020F for ; Tue, 15 Apr 2014 20:24:50 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id EF4432651F3; Tue, 15 Apr 2014 22:24:47 +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,NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 7779B2651B8; Tue, 15 Apr 2014 22:24:37 +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 E076F2651B9; Tue, 15 Apr 2014 22:24:36 +0200 (CEST) Received: from smtp-out-027.synserver.de (smtp-out-049.synserver.de [212.40.185.49]) by alsa0.perex.cz (Postfix) with ESMTP id CD9F3265095 for ; Tue, 15 Apr 2014 22:24:28 +0200 (CEST) Received: (qmail 29738 invoked by uid 0); 15 Apr 2014 20:24:23 -0000 X-SynServer-TrustedSrc: 1 X-SynServer-AuthUser: lars@metafoo.de X-SynServer-PPID: 29648 Received: from ppp-93-104-8-186.dynamic.mnet-online.de (HELO lars-adi-laptop.fritz.box) [93.104.8.186] by 217.119.54.87 with SMTP; 15 Apr 2014 20:24:23 -0000 From: Lars-Peter Clausen To: Mark Brown , Liam Girdwood Date: Tue, 15 Apr 2014 22:24:21 +0200 Message-Id: <1397593461-11369-1-git-send-email-lars@metafoo.de> X-Mailer: git-send-email 1.8.0 Cc: alsa-devel@alsa-project.org, Lars-Peter Clausen Subject: [alsa-devel] [PATCH] ASoC: Fix snd_soc_kcontrol_platform() return type 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 X-Virus-Scanned: ClamAV using ClamSMTP This should obviously be snd_soc_platform * and not snd_soc_codec * Fixes: f6272ff8a5f4 ("ASoC: Add snd_soc_kcontrol_platform() helper function") Reported-by: kbuild test robot Reported-by: Stephen Rothwell Signed-off-by: Lars-Peter Clausen --- include/sound/soc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sound/soc.h b/include/sound/soc.h index 3396594..488e749 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -1252,7 +1252,7 @@ static inline struct snd_soc_codec *snd_soc_kcontrol_codec( * registered with snd_soc_add_platform_controls() or via table based setup of * a snd_soc_platform_driver. Otherwise the behavior is undefined. */ -static inline struct snd_soc_codec *snd_soc_kcontrol_platform( +static inline struct snd_soc_platform *snd_soc_kcontrol_platform( struct snd_kcontrol *kcontrol) { return snd_kcontrol_chip(kcontrol);