Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2175282img; Wed, 27 Feb 2019 11:42:30 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib8743jb4gBzhCIA3zA6ZnLVBfc8aTw0gwIaKdIKI763/4Y1bUQg/LEWY4T6gBiJ1+osJPC X-Received: by 2002:a63:545f:: with SMTP id e31mr4456136pgm.409.1551296550426; Wed, 27 Feb 2019 11:42:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551296550; cv=none; d=google.com; s=arc-20160816; b=CSZpRVFRVT8XlNTq6OxU+F035U2lV3Ub0X8OW1/jeBXekLnkGQgfcZzm/Ux1ltZgeh GPL8DZ/9Dg1TKXov+blBBDX75ZzYjM5RnafA9uXeQBRN36q9xt3WleawjRjJo0Q08us4 r2NsbAq6GkTTkMhTUxnOWEBSFHVpcy/s5majvAyAzP4AocsDBva6F1ONKGuJF4qPVE05 CP/MbAzzGt+gVvhsVAl0fXhEWzxdUmZCRfdLQU2eRCDpbkMbSLSiUhYovzcIvXKUkj/u YWIf0+ahqLnzfGkzaooWki8oOvuamoEBP7WJgaITXdA89pAwj4x1Ku0HPL1/WJvFw80b 5UEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=z+BL6gTofWjfDdxhlnGQ+/veuONqm6j87j453/eNlZ4=; b=nM2bAu8JLQOLnbCbwgdNzxZ5rODf8KTFU7o6BmxHpi/7vWNKlJVRk9BQAQsIgn32xt mnxbL5ZLPbKWlkmsmXk950F+8oN9k4XMntKrxw22HHYpuKF4eWG4FfvX9S0iDwuDvEPF 0t+uMhnMfOa/y75qz1/6m8aBV15zwFMvOjAfXCgbHmnlaqvBbU9v+ceDPITt3uNFAnxN ahfTtVwsv8d8K6SQLvEk+aDmjpe//JMr5+AFpvjfRNziFBjUNnu42Skt3upn7RINI5DZ aFSzd1tJrpzOzvdR63DQUbqKgojXMevXTE5m2RdDZUu70o7sTxEa6w+qSfQLwln+mCgK tYJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@schinagl.nl header.s=7of9 header.b="Ctx/jAlE"; 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=pass (p=NONE sp=REJECT dis=NONE) header.from=schinagl.nl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j123si15708626pgc.384.2019.02.27.11.42.15; Wed, 27 Feb 2019 11:42:30 -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=pass header.i=@schinagl.nl header.s=7of9 header.b="Ctx/jAlE"; 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=pass (p=NONE sp=REJECT dis=NONE) header.from=schinagl.nl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730256AbfB0Tlw (ORCPT + 99 others); Wed, 27 Feb 2019 14:41:52 -0500 Received: from 7of9.schinagl.nl ([62.251.20.244]:52572 "EHLO 7of9.schinagl.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729291AbfB0Tlv (ORCPT ); Wed, 27 Feb 2019 14:41:51 -0500 Received: from [10.2.10.179] (unknown [10.2.10.179]) by 7of9.schinagl.nl (Postfix) with ESMTPA id B0242B75E16; Wed, 27 Feb 2019 20:41:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=schinagl.nl; s=7of9; t=1551296506; bh=6mgppJLPViRDni6rhrh8/jIc+dW92ML1RH+vjjxbbt4=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=Ctx/jAlEBuocdURv4ZkKk+94qwcfRqGrXTbmOV2r6JV/VOVE7JLeTZkomiyr3n/US IO76hp4EiG3cLLKfZ9b2sDCNFs7KgCZ5jH9TlT6is/m43pshT4dTUEEpoRXqBeqQU6 pP9XQ5XOd96+FrgOWww0lJrkdBRsTsNj/9CWuDEY= Subject: Re: [PATCH] regulator: axp20x: Get rid of AXP20X_xxx_START/END/STEPS defines To: Mark Brown Cc: Axel Lin , Chen-Yu Tsai , Priit Laes , Liam Girdwood , LKML 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> From: Olliver Schinagl Message-ID: Date: Wed, 27 Feb 2019 20:41:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <20190225172519.GD13898@sirena.org.uk> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Content-Language: nl-BE Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25-02-2019 18:25, Mark Brown wrote: > 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. 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?