Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7487981imm; Tue, 28 Aug 2018 13:00:49 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYLJ7zt1hrulwSbn7UAp8BQmoP99sN71QkUIKMH9xW+GvdTYwZbQ9XYYDyrpNZwYOLFJRfY X-Received: by 2002:a62:9c1:: with SMTP id 62-v6mr2921052pfj.17.1535486449813; Tue, 28 Aug 2018 13:00:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535486449; cv=none; d=google.com; s=arc-20160816; b=M0envYwdGGzPjPIBcc65HsnYLUIxbfBnJJtSeUkcMDufPf8gEM1kzJFvDhs8LTWai5 A9Zx+oZIn/aUVnuNKSnl/TTwbg04VBcbNzit5c8RKOLclK+iSpJug4bCzoTOa6NvlbwE YEZiD7Bu88tuooJlVsAFnXy3owDvKwrEEvaF7uyWnbdzmHix9P8JYPX3QMkLb0eBQmri 7FynAWJZDlm4FsI4njyHxvdLTp6zTJng5hFdMFNyrlCIQUqx6u896KQ35edVT9UZN7VJ oJJT5FevvA+2oOirnUeWAvx2Ve3OMqGCE1kpwAZzFMgNPFDmfPXmGi/M1svRRp/sDhxv IaVw== 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:arc-authentication-results; bh=zjBO0THqz1IKcUV7zmXYUbNn8wzAJRdEqXGUdJb/poU=; b=G6eheAMHnIPlVVHlADK3NkSKlUdqD+vXtEx/IuFUGU8RVhrIDuZmj+bwlJ2KVmcCju wJFpyKCfuG9MrRZgAxwrIfczLiSi1gDqeVNMoVHA7o0iAeFg9S0IIRejwftr5Vu3+2th /WNDC5se0BeCupW4VIjNSlbyCbzVOEYHd39r0EyH5gBCyhKU3uQuYIMa452NA62CTyV+ e8fIXa3iesMZD5tdvHqF4HCi6gskRUQAkJEEi2XK3MWIG3CuKs5paDpoVy+J3YlwOzgm rUa++Ee0eJnbT/0J5zQTKQ+W9sxgNoDFsq/jOdsgeFIU3q0Glebu+BBERCQF4lDhTD66 fXqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="OFs/5/rf"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1-v6si1730091plt.77.2018.08.28.13.00.33; Tue, 28 Aug 2018 13:00:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="OFs/5/rf"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727255AbeH1Xvp (ORCPT + 99 others); Tue, 28 Aug 2018 19:51:45 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:42766 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727124AbeH1Xvp (ORCPT ); Tue, 28 Aug 2018 19:51:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=zjBO0THqz1IKcUV7zmXYUbNn8wzAJRdEqXGUdJb/poU=; b=OFs/5/rf4FuAAvjpHACqfV7Sf 4zKKjUfDN7AEMHneUUf7Z8Oi7T3JCuezjjDiGQlw+DrrjkOgi8QHzUgDQeW0IcTu/klTxZkorV5Vb RJvmzV565OQlj48ByGnAaDBSJ/jcjI7vt60CIT6bJQZkxo1GgCVh1uRzsYjUIkUyYBWLM=; Received: from 94.197.120.143.threembb.co.uk ([94.197.120.143] helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fuk86-0007eo-0B; Tue, 28 Aug 2018 19:58:22 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 62C24440078; Tue, 28 Aug 2018 20:40:45 +0100 (BST) Date: Tue, 28 Aug 2018 20:40:45 +0100 From: Mark Brown To: Kirill Marinushkin Cc: Liam Girdwood , Jaroslav Kysela , Takashi Iwai , M R Swami Reddy , Vishwas A Deshpande , Kevin Cernekee , Peter Ujfalusi , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] ASoC: pcm3060: Add codec driver Message-ID: <20180828194045.GQ2414@sirena.org.uk> References: <20180821165246.9479-1-kmarinushkin@birdec.tech> <20180821165246.9479-2-kmarinushkin@birdec.tech> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ZXg5XZblsOcYBG3r" Content-Disposition: inline In-Reply-To: <20180821165246.9479-2-kmarinushkin@birdec.tech> X-Cookie: Many are called, few volunteer. User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ZXg5XZblsOcYBG3r Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Aug 21, 2018 at 06:52:46PM +0200, Kirill Marinushkin wrote: This looks good apart from a few small stylistic things so I'll apply, please send followup patches fixing these: > +++ b/sound/soc/codecs/pcm3060-i2c.c > @@ -0,0 +1,61 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * PCM3060 I2C driver Please make the entire comment a C++ one, it makes this look more intentional. > + reg = (dai->id == PCM3060_DAI_ID_DAC ? PCM3060_REG67 : PCM3060_REG72); Please rewrite this as a normal if statement to improve legibility, there's some other ternery operator abuse in here. --ZXg5XZblsOcYBG3r Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAluFpTwACgkQJNaLcl1U h9Bqrwf/VVAlTVTQQ9LMt6IWYuumhMu4EROxafwtcf2gyFjOQ1jK3la4FgIHTfIB XiEJxv0Mc5rA4vot9saBSK/WgFT8iswPV5lm4nDOOnXwPmU+JVUsL/S0fnEFCA8X xvUm0vBkNPcLrqvJs2HknKDnuf6BPCCbeovFOulsO/mO+/2t5lDgwiXuYs6aBOwT yTv+uOfBI5XkIoPpyh+AA2m2/i59QWcJn+0JR45L+2o9ndMF82kqCsPmyY24lQM3 1J9Yd83MXisiVU7MJ+c74yr2b71SdkHZpLV6zBsTaiXgNMqhc4gan9omaVrqMShD sPSS2p6SBk+fpq8fDMzA8Vlw0iOD+A== =PyJX -----END PGP SIGNATURE----- --ZXg5XZblsOcYBG3r--