Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1259400ybg; Tue, 2 Jun 2020 05:35:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3/BGLxV27xKp7TC4MYwDDnX/OKvJwqa0yg4KEfu/ja1DGbyv7UKq5W9Updeaduy0WVWOr X-Received: by 2002:a50:9fc2:: with SMTP id c60mr6037592edf.319.1591101348120; Tue, 02 Jun 2020 05:35:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591101348; cv=none; d=google.com; s=arc-20160816; b=qN5dNYfWuDj0c3Rsgr3V3x+VCYIUzC8pvMgFQnRrlRhRKgHAXzodZW+X87qlroLwLF DOJeh8vYxIlP8aEYfSzS9gK9QZvQ0K3dmhZR8eixRaIezHYN8oh5IhT5T4IqpzQ8Nj3m axkdokA/PrlUBGpm8AxwYtu2XtCpZ7vaeU9LEWC8A0yRaMvt3UBGDnozh0o8N4+oE9M5 dKf0jR3qpS8xpvStRA0kFYzOwPVnRIpka/sBpvUWS+Y0hm4cKj8ReXov5XW4Wc7k4EjC MJL8ymC71OxmU6W57tBci+zzjFjh8ONG7JqipU7LSXxnK8pEiCgdsR2R8JLk6ZJV9az9 9ATw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lu3BbalZdQaF6ggOh0dU1HA0oIChyA8n999bSv8rs1I=; b=stzOeleAF4ci4LzwJfcv2h6m5nUAcua34zlFArJO1wqLXXRpxfKNsD14RhNJQg08el m+VzJgxeGfhxjgsOvX8CPMYldxlypECj77K78REAllUKjpg7jahorgZ/UUQ7Ac6hom7D h+Moi3rPwU9sq8Po1gL8cDxxuz2wbW+61qVOYh5J6FRoW4qJntmTKaEMKcMfdaDeEhNe SyrFrvt389yxYW7fow9kSLfyb/5wlFWerlz5s0AP9+sXzK+wdEDYN+g4Rcezwmam6tP3 yBGh+145adnY23f+p3Mv+xmqUqc+Bwpf/qHRV+gtpzahgt5zCMsQPtF/1sfhYRT3iZjO KPZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=CV1fSdhu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a5si1425347edn.81.2020.06.02.05.35.24; Tue, 02 Jun 2020 05:35:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=CV1fSdhu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727055AbgFBMbA (ORCPT + 99 others); Tue, 2 Jun 2020 08:31:00 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:42658 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725958AbgFBMbA (ORCPT ); Tue, 2 Jun 2020 08:31:00 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 052CMgWu171643; Tue, 2 Jun 2020 12:30:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2020-01-29; bh=lu3BbalZdQaF6ggOh0dU1HA0oIChyA8n999bSv8rs1I=; b=CV1fSdhuZ0iQ3oob4rEqjrNg24OX373xXBOPl1MYMnHZ+u9uHPq2swUHPIQeBLeslUiX F+0N4Tgi0js6b9BgLW0nH54Su+lgf64krT/SddzqlAK8t3jKwzgJ3wim7zt9xtrK9yZN AAyzcpKLqd4PWVaftAf/MOefzKXmPyIZIyX3lHNYdvIJQRfluRzzWYJuuOSCdlj1rKsk HSbfYeH7HxXNc1LxsBkYS/mwjhbiKdgfWsO2g8lzPJRYTU+wh5MrbvV1GFOdB6USgQf5 4R0lFB5Vz63JGGC6H14lpzjc1j6BqiAazYj3RKg7MAgXol3sMApfg2VCZkrYnl3DI2xe Gg== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 31dkrugt0n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 02 Jun 2020 12:30:01 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 052CHPkG125784; Tue, 2 Jun 2020 12:30:00 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3030.oracle.com with ESMTP id 31c12p3dr8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 02 Jun 2020 12:30:00 +0000 Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 052CTo0j015127; Tue, 2 Jun 2020 12:29:54 GMT Received: from kadam (/41.57.98.10) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 02 Jun 2020 05:29:50 -0700 Date: Tue, 2 Jun 2020 15:29:40 +0300 From: Dan Carpenter To: Vaibhav Agarwal Cc: Greg Kroah-Hartman , Alex Elder , Johan Hovold , Mark Greer , Takashi Iwai , Jaroslav Kysela , Mark Brown , Liam Girdwood , devel@driverdev.osuosl.org, alsa-devel@alsa-project.org, Alexandre Belloni , linux-kernel@vger.kernel.org, greybus-dev@lists.linaro.org Subject: Re: [RESEND PATCH v1 3/6] staging: greybus: audio: Resolve compilation errors for GB codec module Message-ID: <20200602122940.GF30374@kadam> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9639 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 phishscore=0 malwarescore=0 adultscore=0 suspectscore=0 spamscore=0 bulkscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006020088 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9639 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 priorityscore=1501 mlxscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 clxscore=1015 adultscore=0 mlxlogscore=999 cotscore=-2147483648 phishscore=0 bulkscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006020088 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 02, 2020 at 10:51:12AM +0530, Vaibhav Agarwal wrote: > Due to dependencies on ASoC framework changes, GB dummy codec module > compilation is currently disabled. This patch updates codec driver as > per the latest ASoC APIs. > > Signed-off-by: Vaibhav Agarwal > --- > drivers/staging/greybus/audio_codec.c | 87 +++++++++++++-------------- > drivers/staging/greybus/audio_codec.h | 2 +- > 2 files changed, 44 insertions(+), 45 deletions(-) > > diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c > index a2ee587e5a79..bbd072acda5c 100644 > --- a/drivers/staging/greybus/audio_codec.c > +++ b/drivers/staging/greybus/audio_codec.c > @@ -832,7 +832,7 @@ static int gbaudio_init_jack(struct gbaudio_module_info *module, > int gbaudio_register_module(struct gbaudio_module_info *module) > { > int ret; > - struct snd_soc_codec *codec; > + struct snd_soc_component *component; I quite like the "component" pointer because it's assigned once at the start of the function and used consistently throughout. The other pointers I complained about were just temporary pointers which meant different things depending on which line you were on. They made the code harder to read. My only quible is that in the next patch it's called "comp" and here it's called "component". Let's just use "comp" for all the local variables. regards, dan carpenter