Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4703299imc; Mon, 25 Feb 2019 09:26:50 -0800 (PST) X-Google-Smtp-Source: AHgI3IZnOO8ccEe9uNebXpb9yFKHD9Ihbwj45pnbI6quLbe56BP76wAnSW167zPNLr8KLTiK2jGd X-Received: by 2002:a17:902:6b4b:: with SMTP id g11mr21010339plt.92.1551115610447; Mon, 25 Feb 2019 09:26:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551115610; cv=none; d=google.com; s=arc-20160816; b=QcxWVFsLXSgjwvzwC1dcs325Tyy02QMKHHplWuGL0FrDhhOu2J6WMw27fI1D98VJ8D 7Dyve1FamtJOid14h25g66IjmP9LESSUH3g3A17tZTj8Gxgl26AL4ciWzyVdKBlU7ShP mGJJChRdqHXcDs4m1GcMu30M6CdxoXDouLHDxbL4eCpaCvQ1dXM1j9I5yubJOOa0kaDO jWfTVAd4HF8NGjlPynFMy10uwi3sQvzSonzPlsuV5tcmgSa1hzAaxA+TiRZ801GosqHO BaVd/E7wgM82U70LDE9MkO+X2dykwxZGIwjlc7fuNBzsC/eensawn7f2k95nHXCjIRB5 PlSQ== 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=Rw8YuSzJmpZJGSbRKxxlSyiTaQyTin6mpnDbYmE1LKc=; b=hvBArv0VjVJ1bBEHhuVEFI/QjFr0V+iZWMRkK0yNQH52ufQkp5NagrIShjOxpRGbt+ bR1fk/3G3TACE5weC2cqYg1MQbwA+47v0CUY0E75q5MW2zUAW+oKyO5Bmqvz8E3/tcMc RwA/dO66eQXOpgg+p9xN2xlkXcV6yqCJyArZcy4C6Ocj2LIqkuYa/AOwknysh3fw23Ov DOfgH9N4djQt6+EQV/8wtwJEhyE4+daors6AOT9nyPq3a2PW4wDhxiukr1OfcPJqKx80 Xm9pQ0F1LTQdZ5W+HWH1fD9lhPTB6x+K4bpS6n4CyEI2f0TBfvA3PiGv5p0T2A86voiX JW1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="eN+Ue5A/"; 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 t186si9573950pgd.504.2019.02.25.09.26.34; Mon, 25 Feb 2019 09:26:50 -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="eN+Ue5A/"; 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 S1728728AbfBYRZe (ORCPT + 99 others); Mon, 25 Feb 2019 12:25:34 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:39164 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728400AbfBYRZe (ORCPT ); Mon, 25 Feb 2019 12:25:34 -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=Rw8YuSzJmpZJGSbRKxxlSyiTaQyTin6mpnDbYmE1LKc=; b=eN+Ue5A/tHNdYLTC+mW3qVLb+ mS80SXG/mHYwxWUgCrfKLPI8F2m1H75d90PypnKOW10798f024V8HAhpZcEaWgA7h1Itho5DMWQrL lHGjmdlI8mhzk9NguKyFPZqCj7JU63F6jgDLXhqTaHDnIkWz9Arbu1AAqshAJezRnlhaU=; 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 1gyK0G-0003UO-VR; Mon, 25 Feb 2019 17:25:21 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id E80631128354; Mon, 25 Feb 2019 17:25:19 +0000 (GMT) Date: Mon, 25 Feb 2019 17:25:19 +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: <20190225172519.GD13898@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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/3yNEOqWowh/8j+e" Content-Disposition: inline In-Reply-To: <15e97e28-0008-cda4-176d-a3feb9ad4e8a@schinagl.nl> X-Cookie: Neil Armstrong tripped. 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 --/3yNEOqWowh/8j+e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Feb 23, 2019 at 09:37:01PM +0100, Olliver Schinagl wrote: > In any case, you seem like a smart person that reads and writes hex and > bits often enough. This is not true for everyone. I can just as easily > reverse your arguments of course, for example, 'each field has a well > known meaning' ... to whom? People that use these things daily, sure. > People who just need to double check something or modify something, not > so much. They have to look up the MACRO, the struct its in, compare it > to others, so as you can see, what is natural for you, is not true for > everyone. :) > Also, the general consensus is still to avoid magic values, and to stay > consistent with the rest and not make expceptions, it makes sense to > have defines instead of magic values. 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. --/3yNEOqWowh/8j+e Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlx0JP8ACgkQJNaLcl1U h9AV4gf/ThB7jH0R+Q95S8ZXGxbTkKjKwhtv6xxAM2CWrMsTdguT5B6Ai3C9YMtR 6h+5kpFnnhNmU26bcKWl4W+29B19riYdIxjAul6o15DtM7ayjmIwgXfjVMHUAzUf rpoGadNsr02auq0YYZ5gXI6PkswYuI72tM6Sv5WBWCNLk9kuurjqypWFFpfgKUF5 3F+Zl5LIIFq2jHvayyiB0RZ9Br7HISWRc35hOD2obNyaSvzKaFfFUCLplndVwlW6 euOeKgNo8NTDWZ1arES7E9ZkN4rV06doSKkCGGQ1gIEDz+etbt+NCeUIrHIvKaBE Ved7YAw5pjjrEL2jPsLTBeeSok2TkA== =m7RT -----END PGP SIGNATURE----- --/3yNEOqWowh/8j+e--