Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2072978imn; Mon, 1 Aug 2022 10:06:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tfxp+nVPu2ZLyw5qFsCXw8WRXo+QibWl68lZLiNejnBacYoRrwphQksHhGyQ461V+3/oNF X-Received: by 2002:aa7:c9cd:0:b0:43b:247d:bedc with SMTP id i13-20020aa7c9cd000000b0043b247dbedcmr17321019edt.291.1659373616904; Mon, 01 Aug 2022 10:06:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659373616; cv=none; d=google.com; s=arc-20160816; b=fFnC4QpvzTpHAgSKpdXrqFdQ9bljYz90JOui7E3dlBvJoFAhUBrx0DuVQB+jIHGfzO 2bbluHNpilMzaBcieHZnhXeYifEGeIh/Jdb3d8sQIBQqG6+79TYWsXNZdmpnLhSSqQyZ CV2Dfq/OL8wUH5iLFQ96yrMCfSzV9A/Ak3d8bAg6oYvebooiFJxMV9gupVLziEb8zVOw 4Hslq5f1l+h4C0U69AZbCLCZdEuMMsgXckZEhFmaIH8HBdCvOyz0UFdoeuhKgQ9NS7BS bG6sM5bBZGfgumqWEJPYRT30vDWObTCYat5GCJKZf09QjO9hh+NFbkWS7lUy5wkULnuu 94PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=m4Hx/+V/FxVAx7Gg1AFBg5JLJy3jWDX7O0JnbOqHXbY=; b=F7BIzRsgJFVZ7scztZPM40TYhJxLfPX/Lwgi+WQ0lTNEqYGTz8vNgdwplVWJxS6oDH c9h3GyT/if0BoazUBBpasgEpABgADsy+JmV8gMRUuBsA2301JgteKnorGpa+EcAZ7UgG ELbBsaOdS8hc/b0e3v46vH5MFLryCyA1B1Yq+xI5D25EejHoMWrtMjvK4Y5XAqkmcBMJ 5h58yrtsZpRqsFMDqiSMBzS3izBWwnkXrMSmbInOVSj2RQ9hVgR4WYczchdIyenXGjln 2u/dgUAuI866zmK1m+qFJsxonlLHl5rWZbGA6Pw5F741TeWTickOPbjucFhM7RA5W/Mo Wq0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=idMcUm3V; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g3-20020aa7c843000000b0043b6a4c1f1bsi373585edt.143.2022.08.01.10.06.31; Mon, 01 Aug 2022 10:06:56 -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=@kernel.org header.s=k20201202 header.b=idMcUm3V; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232045AbiHAQDq (ORCPT + 99 others); Mon, 1 Aug 2022 12:03:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231310AbiHAQDn (ORCPT ); Mon, 1 Aug 2022 12:03:43 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E838028724; Mon, 1 Aug 2022 09:03:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7B4F3B80FA1; Mon, 1 Aug 2022 16:03:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 945BEC433D6; Mon, 1 Aug 2022 16:03:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659369820; bh=K8PZRhgkYG3cNsoiyYsSqxmzC5S5rbdYFqDxKPBWgag=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=idMcUm3VwOTAalLuTRvxJl4kr1d7Jpt26SetaJhhkPVQ8BX0HxfeHwJTeCGOIPKpX Bt9vOq8TcQE2pnaecmKNy75kxJeSE8b9fHP9CKFQFq8V/djjMlP9b8zkiG4lr7hKp2 2fmsL4OT3uC6S9iQ1q5TfK0ifvwq3Xi/G2VgvmnLQTkXaDMnUGHwT+jJleJYXaI6Fi ohXxmEQMCgarm5SE6ZP70fF7/6QY75dkRAs4wiQmkYm2/vMVGjqhBS7py2eIVhF3sL 23N3q4BYQRmJxZXZftGX+kvzp2ptWQDi6eIaH2Bp5yvwH6wt50eiI4EsCJfKDXfPX+ d+1rLe++PThoQ== Date: Mon, 1 Aug 2022 17:03:33 +0100 From: Mark Brown To: Samuel Holland Cc: Liam Girdwood , Chen-Yu Tsai , Jernej Skrabec , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: Re: [PATCH 2/2] regulator: sun20i: Add support for Allwinner D1 LDOs Message-ID: References: <20220801044758.12679-1-samuel@sholland.org> <20220801044758.12679-2-samuel@sholland.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yUJqW8Kc38GtV6bu" Content-Disposition: inline In-Reply-To: <20220801044758.12679-2-samuel@sholland.org> X-Cookie: Dieters live life in the fasting lane. X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 --yUJqW8Kc38GtV6bu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Jul 31, 2022 at 11:47:58PM -0500, Samuel Holland wrote: > +static const struct regulator_desc sun20i_d1_analog_ldo_descs[] = { > + { > + .name = "aldo", > + .supply_name = "vdd33", > + .of_match = "aldo", > + .ops = &sun20i_d1_analog_ldo_ops, > + .type = REGULATOR_VOLTAGE, > + .owner = THIS_MODULE, > + .n_voltages = BIT(3), I'm really unconvinced that using BIT() is clearer than just writing the number of voltages directly as a number. --yUJqW8Kc38GtV6bu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmLn+VQACgkQJNaLcl1U h9BlqQf/VyorEumLx9DM246SpPg5dho5RS+QCt5MT3miehmIayT0RTVcEQzLPx0P BrxsBsvfEMpglkiW/NjFZ5aQ5nsqRNOe5f67MMt1gLXhps0tU/4szWEIzrtyoN8Z lCOeUmVhd5+savX5s1DdAHg+YvbKZ9idn0xUY+Bm85R+vttFj8zB56i3tLP5proz w/+jgHUD0VCu+1yYTXpxHEHdwzxKMh0aWsDWFzC6C+bvbf5smqucs2lhc75Vc/CS EPPiFY9/7uhX7TjqqaePvChkKpBlF5NShk59rmjawuiNVHowAMQW74OtP1VtA3WO KPyaTH1QC3JrujzDBEKK026dd6Artw== =TkpN -----END PGP SIGNATURE----- --yUJqW8Kc38GtV6bu--