Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2196698img; Wed, 27 Feb 2019 12:07:42 -0800 (PST) X-Google-Smtp-Source: AHgI3IbAel3s+rS3vNczaYzGfF3MCa19dT/CG4izpfkUsQopfCPIzh00K3/epYj6sl/qNaSbMogQ X-Received: by 2002:a65:6546:: with SMTP id a6mr4696508pgw.296.1551298062122; Wed, 27 Feb 2019 12:07:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551298062; cv=none; d=google.com; s=arc-20160816; b=x4PIYu/zGiPwNZs7ImNSRvCHVRnV8goEy5lrcT2h4imIygCpowR9hfvchDW/llTkFt bH7seKLqGe6EW/O+KvwS/EpvR61XCwrPsSINxMlqUq7aX6W+il7XKRHc4uQfZAkr9jpu mPIO2fZLT5+vMpR6rAUHlDsK74Rr2ZEtmFhlGHeAp7BHc/78/c3v2oua9qq+tbMpqzCg NJGwS1uz3VskpldpNTCszCsGEMzKGyQMS0w6ZWdPS1m3hTQfkHgCfvhacARyT7QjPHOG Kp5czFkOlJUtmj8eBPWO6VdcK64thiKGpM9CCxZI05DI6SF5GrhLrh9kwzF21TnKjDHM CsaQ== 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=jOiz8C+dwOIx838o7A1aeUXxnk9nvtNdF8e/8hwyYLU=; b=yFzLU8V2gmR4mTiQlJmV1kiM/aU814mEH5RquQA7n+4TIu9r+nWyO26rdZsxN26Ico M20ZxwKaD1hR9tnZqkX7Dml0o2OJaLQ2g+db+zTHDfwRkeVScNG+vHEMLxEGrwDf4fkW 7IUyoSe6pbjWDxTdKlbG8wq1AYD0n18BV3MmreWynreqeMnhmRW6VE6ljjBKQ3DwTnay MQTv3495+1MYjbHVvuOZ2uYEOuZidpq3ZqC6kYVLVPsZNP2+V+DziaJxjEeaZ11Stw0s t6aftwtcnqjxIiPJjD7YgXylngVJN10KTEncbO8l80OoK9Vfw8ZwgJ4vql50BkExT8qD ISXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=ozVa8+cB; 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 t2si15739599pgk.202.2019.02.27.12.07.26; Wed, 27 Feb 2019 12:07:42 -0800 (PST) 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=ozVa8+cB; 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 S1730360AbfB0UFv (ORCPT + 99 others); Wed, 27 Feb 2019 15:05:51 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:60696 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730316AbfB0UFv (ORCPT ); Wed, 27 Feb 2019 15:05:51 -0500 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=jOiz8C+dwOIx838o7A1aeUXxnk9nvtNdF8e/8hwyYLU=; b=ozVa8+cBMcBEZgLmgpW4bJDVx WXMx/iZUPYN6H1Ua9z6ZFuNLE3IBesfXJnQytKvrNTK3tJplM/nEyOI3a3r44IjFMRES3JlqHKplG Vong85MabQeJAuOXOYe96oYpTb4z+nxIMKqf3YBfxiBfYXGt0ieffgF6TDgk7ef+zu8EE=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1gz5SU-0008DH-5N; Wed, 27 Feb 2019 20:05:38 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 299641127A15; Wed, 27 Feb 2019 20:05:37 +0000 (GMT) Date: Wed, 27 Feb 2019 20:05:37 +0000 From: Mark Brown To: Olliver Schinagl Cc: Axel Lin , Chen-Yu Tsai , Priit Laes , Liam Girdwood , LKML Subject: Re: [PATCH] regulator: axp20x: Get rid of AXP20X_xxx_START/END/STEPS defines Message-ID: <20190227200537.GB11065@sirena.org.uk> References: <20190220165013.12774-1-axel.lin@ingics.com> <24E35288-677D-4223-B94A-52A4F37792A8@schinagl.nl> <20190221094237.GA5970@sirena.org.uk> <15e97e28-0008-cda4-176d-a3feb9ad4e8a@schinagl.nl> <20190225172519.GD13898@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yNb1oOkm5a9FJOVX" Content-Disposition: inline In-Reply-To: X-Cookie: To teach is to learn. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --yNb1oOkm5a9FJOVX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Feb 27, 2019 at 08:41:46PM +0100, Olliver Schinagl wrote: > On 25-02-2019 18:25, Mark Brown wrote: > > If you find you need to describe what the fields are it would be much > > more constructive to add a comment at the top of the table saying what > > they are. As things are this isn't helping anyone - as a big pile of > > defines it's hard to read the values without context for how they're > > used and if you're looking at the table you can't tell what the > > regulator actually supports without going and decoding the defines. > Then the name of the define should be more constructive, which imo they > are reasonably? But as everything with programming, naming things is the > he hardest part, right? I really don't think that's it - I think that sometimes a data table is just a data table. There are some coding styles that work to avoid having raw numbers anywhere in code outside of defines at all costs but I do think that goes too far in cases like this where the name of the define is at some level just going to summarize what should go in a given slot in a table which adds little. --yNb1oOkm5a9FJOVX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlx27ZAACgkQJNaLcl1U h9Ciwgf+NerNXaWQi+3pgVYeq9dUbDJIlJLGeFxz+fW/Hmg/laK28XYlvDctP516 oq+SCMW7xi2U5LmO+pf5x1/MSenaEFS9YQVahpcBlkyHs3PbA4KXvf5dGo+sdFgA I7vwdSOBEd8Il8Dchja4NyBkm5Efo60vCbyZmbB+GaR/GwRVZGkFf0CRMhhk8Q+Y 2Paw5gxCKDXt+YrD5xs2os4/6GjWMInJwugiCBcZhbXh9UnhiKtzlcesFyKMF90D 4JplpxD+xusB3vh/VbzIX60bas+B2vEn85oPcBEPnlwXQqYMwhAHKgOeAXJ00yvX Q9MrTHvV3sXA0G4QIAPnuMH2mdxP+Q== =jVRG -----END PGP SIGNATURE----- --yNb1oOkm5a9FJOVX--