Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1277829rwd; Tue, 13 Jun 2023 07:12:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ68ARoddAzv9UHlgWro5czseppgjhZ+9ZFHDX8TEIAhhRkSzzxOHPHYGIa0lNDeN5ROkb4w X-Received: by 2002:aa7:c153:0:b0:518:793e:1ee9 with SMTP id r19-20020aa7c153000000b00518793e1ee9mr1756589edp.16.1686665546858; Tue, 13 Jun 2023 07:12:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686665546; cv=none; d=google.com; s=arc-20160816; b=w8ijZcejSxEoWpd1hACR4pBPrToSUuFbH8HRo5tmXKSxwTMgZT6s4yK+YQk7WufGdL AQdNLBAq0HSQHvHsUlQcWiqyHDJTqKO5Bk+GA32qbbMfkEH8o36hTI9uC3PSg1FfyZKr efX0xQA7qpB4K3LL5DeaYKhKRcO2OaSAAyTqJxILCnYtQSqAA8MC+e8kDhqa+JFsQ+gL RvK2JHT8CQjVMAu7zRZ4NgbGFAIm//ldFjyia3qCGDcPDclRcIkjCnipnrmD+9n0fGGX Ix1ndSYCwOZgoK7MRCpRF+Grw09GBkLkTK6S3tjij9hPD2ueKepGH+EbY3YHbtEZP/S0 0d3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=RInDDoo3F9fiMPBADCTZLN5rnGkLVd2Za/vXzH5dQ/c=; b=EdrtaJuEBLip2BcWUDFp8UqcNqlISaf4T9qCwNpARIrU9ChzI7HRw1Kga8ehwxyRLH 2nXyz8/b/gn187L6AotQSYqmnjMa0NeAl2OkkQcXm5z7KzJqswoLLYiWWRpg2dkIh0ic zTc3iXMM0Qntq7EYvpwvdM4YaIDUc9T70HlfcK3Q5Q/jVVn1mnK1TPMXuaeOVFbLeEBU 92NVVgBxZekqyboHwh1w5lm4XNvyIZ7M70fyTxIDq9b0iDzGM1A9+9pU/r3A97m/GTOV 1RucrUaPNMfw45R18lCwy3IvVUhsx+tWmoY3xdsyhNHpSWT4efNVjoYgURDQxxrn0tKE DscQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=QftuhZpB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b4-20020aa7cd04000000b00514b3d55fe4si6790624edw.227.2023.06.13.07.11.53; Tue, 13 Jun 2023 07:12:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=QftuhZpB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239539AbjFMNzy (ORCPT + 99 others); Tue, 13 Jun 2023 09:55:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233859AbjFMNzv (ORCPT ); Tue, 13 Jun 2023 09:55:51 -0400 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66F68B5; Tue, 13 Jun 2023 06:55:49 -0700 (PDT) X-GND-Sasl: herve.codina@bootlin.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1686664546; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RInDDoo3F9fiMPBADCTZLN5rnGkLVd2Za/vXzH5dQ/c=; b=QftuhZpBqsP2B3CLtbE+wTeYh7Ogb7O3ewjH04cfBt5faJ/2C8x9gR0fuovseLhV3B/PDv DKpPbwBXTC+TbwcGQAHA26J2W0Vw8N9x8r1MHClpBAdzHAbVHEQuMnHznYF9/7ZOLSSVjX lhbelEMGkjLCZyKrjKlCGVyaV9HEL0G1HGOM+QCIubSlqCF9t0w9K105iVk6FKH28bXUOu 7tDDfVQMuPE9ZtJLoE0CHP2zvQgrE5tEYFnG3EYNbqsDnp4XIjjpnbVqD1RMTK7/BOCv2t ckKTpXK24XRaJX2Wvf58rEtLKsMEDUo+A9lNzZpsNp49wfS5V6B+NyWSSy/1lA== X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id D0A751BF219; Tue, 13 Jun 2023 13:55:41 +0000 (UTC) Date: Tue, 13 Jun 2023 15:55:36 +0200 From: Herve Codina To: Andy Shevchenko Cc: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Cameron , Lars-Peter Clausen , Jaroslav Kysela , Takashi Iwai , Kuninori Morimoto , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Christophe Leroy , Thomas Petazzoni Subject: Re: [PATCH v3 11/12] ASoC: codecs: Add support for the generic IIO auxiliary devices Message-ID: <20230613155536.7ce2d1db@bootlin.com> In-Reply-To: References: <20230612122926.107333-1-herve.codina@bootlin.com> <20230612122926.107333-12-herve.codina@bootlin.com> <20230613113707.0b5d9648@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 13 Jun 2023 16:24:58 +0300 Andy Shevchenko wrote: > On Tue, Jun 13, 2023 at 12:37 PM Herve Codina wrote: > > On Mon, 12 Jun 2023 17:37:00 +0300 > > Andy Shevchenko wrote: > > ... > > > > > + struct snd_kcontrol_new control = {0}; > > > > > > 0 is not needed. > > > > Not for this one. > > > > The variable is in stack. > > Some of the structure members will be set in the code but we need to ensure > > that all others are set to 0. > > Yes, and as I said, 0 is not needed. Compiler assumes that if you just > use plain {}. > My bad, sorry, I misunderstood. Will be update to an empty {} in the next iteration. Thanks, Hervé -- Hervé Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com