Received: by 2002:a05:7412:3210:b0:e2:908c:2ebd with SMTP id eu16csp735353rdb; Fri, 1 Sep 2023 02:42:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHpMdWfS1Zn51b5ObKHqcqrws7LrHDtBApthi0wf4vNJF7g19uDYjwOFOYh4eKtigNj/O+Y X-Received: by 2002:a05:6512:3254:b0:4fe:8661:7696 with SMTP id c20-20020a056512325400b004fe86617696mr1160169lfr.45.1693561359173; Fri, 01 Sep 2023 02:42:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693561359; cv=none; d=google.com; s=arc-20160816; b=TPh5/5JQLI07zlKq2piiDcP9216n8kGjFbd2lAPAi0t/Oyf2rxVS9CRVLUADcQm11y kSyKdpNNcJY8J+klwoXO4rxE8vHhegX/81D7Y4us0pUoqcZQmi5sMFx/B5nPqh0rEsiT d9aLOskif55zWWAaAiAUORuZoqoxhz0b7PsCNXx3IE3CK/ZvW2R1c7CdlPIEg479EVUq xxDzMOTpWdSTteUBFjJk7LFb48zPr1GPxHKf+hpLD0zcFvkO0zkYUpxXSmvfxGs3srY4 P1pMPLvvuT0n/qYt2mNSqxn7EKpWi1Zz+XbfuJT2ZCGweJIpSodSl7JjTpzOQb9Q5GuA u4iQ== 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=uqQc3vxosVeTTqb7VMbNhCnqwxoxvE9BdTzJWv+I6XM=; fh=RRs9xFtYGP0XFdrEIl0ffiSqw59hIjZkzdwXuqCoOQ0=; b=Xm8BTvxzp9FkgipPlcZKIRDCMwHcz2JGQIUwZEuGYr7/LfpPe+7bg1tqqfV8ZHAsOs dDKP8iDuswnxFL4YiCaWXn2YKPW84sXWkfELWXEgMadaCxzc2cvVRCoAfxEitKPekmDq FFpNTAvaOr83TaW+huTd7580zVQgJSdpaaxFZi1mFyyb3njNiK8zLJW5xsml8NKitvXo 6g7Fi1ndEmD/J+zXq5K1EMUanb60T9t5n7QVqUmONxsw2PqrdtX3QLnIUoM+jOvZWb/N WgnUzUt02+Z98yW2I6bM92x2rbBy++Tk5noaBBCp3DhQMz1FfZJyMXiPC5YTEE6/A0yp qYeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZMQ9HHq1; 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 n15-20020aa7c44f000000b0052a3a1c7f7fsi2300621edr.173.2023.09.01.02.42.31; Fri, 01 Sep 2023 02:42:39 -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=ZMQ9HHq1; 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 S1345285AbjHaMgC (ORCPT + 29 others); Thu, 31 Aug 2023 08:36:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230271AbjHaMgB (ORCPT ); Thu, 31 Aug 2023 08:36:01 -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 39F5DE49 for ; Thu, 31 Aug 2023 05:35:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E9A40B82288 for ; Thu, 31 Aug 2023 12:35:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 807E3C433C8; Thu, 31 Aug 2023 12:35:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693485354; bh=c8c6hZgdJXVkuqafYsMDSH56QRo8GHKScMeGvOBZOBk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZMQ9HHq1y/DcOCHKMBXqebO9stCM5l9qnOcso+I55AJIpkpPlloFhyZhG8wGKdXk1 4BMGmuh9qIrNLRRggRqTIRnY9mjhCfOzleE7ocwqA5jVacexbmapWEnbWB4ZF7hp7f 1tD5LGVKYTTB0tELx35fGHDnuj5SVhuIm1maE8ac4KeRSNTl6uzh7DNcOSDPfxpj1h cnHbldC9kWCpANf+thTK7d17z006/PLX9MbI9x6qwvgY4Skq8rntWN6zcH35aiLWHf TtWMMotAx9qh6X5DaUlHoQvce1vvSmU3wfvJ7owvp6zewsB6+oRA1DkRWlDDPkoc+R cp6lMWwLMD7AA== Date: Thu, 31 Aug 2023 13:35:50 +0100 From: Mark Brown To: Naresh Solanki Cc: zev@bewilderbeest.net, Liam Girdwood , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] regulator: Add uapi header Message-ID: <813261e9-71d8-4fb6-aab0-474915662598@sirena.org.uk> References: <20230831121412.2359239-1-Naresh.Solanki@9elements.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="USLdL0WA7M+Hr251" Content-Disposition: inline In-Reply-To: <20230831121412.2359239-1-Naresh.Solanki@9elements.com> X-Cookie: "Pok pok pok, P'kok!" X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 --USLdL0WA7M+Hr251 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Aug 31, 2023 at 02:14:08PM +0200, Naresh Solanki wrote: > +#define REGULATOR_EVENT_UNDER_VOLTAGE 0x01 > +#define REGULATOR_EVENT_OVER_CURRENT 0x02 > +#define REGULATOR_EVENT_REGULATION_OUT 0x04 > +#define REGULATOR_EVENT_FAIL 0x08 > +#define REGULATOR_EVENT_OVER_TEMP 0x10 > +#define REGULATOR_EVENT_FORCE_DISABLE 0x20 > +#define REGULATOR_EVENT_VOLTAGE_CHANGE 0x40 > +#define REGULATOR_EVENT_DISABLE 0x80 > +#define REGULATOR_EVENT_PRE_VOLTAGE_CHANGE 0x100 > +#define REGULATOR_EVENT_ABORT_VOLTAGE_CHANGE 0x200 > +#define REGULATOR_EVENT_PRE_DISABLE 0x400 > +#define REGULATOR_EVENT_ABORT_DISABLE 0x800 > +#define REGULATOR_EVENT_ENABLE 0x1000 I'm not sure embedded the raw numbers in the UAPI like this for just one driver is ideal - it might be better to do something string based, though that would result in us ending up with a file per event which is a bit noisy. --USLdL0WA7M+Hr251 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmTwiSIACgkQJNaLcl1U h9B63AgAgiEcXKsVY1ELYCVzWS57lp/pKdjjCMYFrSkqNGTu1lwPcX3+2SGUTUra MG7D4fPkR5bAU4jcL7lLVTuRBW92Jhe7XTrdvxYEpV4EjdkBMU8yho9s0d+xsFcH gX5ralz/SW0ltpkXkm+TtRtZt6tEPt6WjMWkMNIIN2iic/N2WFaeXObqlgDHC5Ee zv1aDFUMqrIH+huHmHcmsAjAm4lwC11MxOtpcPfxttgWLtWEksSb/gjyY5Re9myG MdvubGo3B8joTNusNI6tCVldpmg18j9qdIAQMeNa1oNYkHOgmyuH3La07W15EGPb t53qxGxs5FphgFNCDvqDPMtkvAJa5w== =tS+Y -----END PGP SIGNATURE----- --USLdL0WA7M+Hr251--