Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4282184rwl; Mon, 10 Apr 2023 08:43:38 -0700 (PDT) X-Google-Smtp-Source: AKy350bYjnKe+q7s4tDjWXmrsvCbhDedxu5mXMUMGMx0jNYXjcF3t8RBRgw4pOmPM1mEu4+4F7GG X-Received: by 2002:a17:902:db09:b0:1a2:8924:224a with SMTP id m9-20020a170902db0900b001a28924224amr16890698plx.25.1681141417821; Mon, 10 Apr 2023 08:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681141417; cv=none; d=google.com; s=arc-20160816; b=dtaAJ9vJu8ivoR3WU6jO26Aa7yBwXMvtweCBUFb4//P4NP9tiNkDpX8THYFKeD9qnl yDF5aPLX++NKaH+kC/5G1aEUaN129bA0qopnAxJCqRpO+667jyG+KatO9Afyq7j8kL6B OhIQUcW6UoNHEzczcAnYi9+0qqdeScqPrK6IxkDLlTfgGrIwqn9yFhW0aKDO/3W5YsC/ brxNeHpWtaU3brTaSZBLXb5KcRZdbtFcT+NKjrxUyCRi5CgZX5CRz6s6HcmOdcKUwjxL PPveX5OMyGcXp6SC36sXkMWf2WYHHP9eqOME5OU98WMxk32SxXmGUFIhaO5Q9s/ZS4cB bKOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=vP6y5XKzv8N1Xf55BQMInwFvuq0qHzUvm9lOY3eS1fs=; b=j+TIypiwltTPcWwGnxCSEUhHnivMR6m1zPyidOqbiPvyFrjH4EHfbKzz0jERszxvd4 hCHEt4QPXO9bEhbEMnhF8rU17/UKkPw7SMjEvVgMTxznx9kg3yJZ7003ABJ4pdjWUY1P +wErtMy4jOTjblVNqrwj1qyH4EFDh0HJe7oCZyvKY0/RIHdhG3SZoxxIeWvlHD0IeVqg klmmhTLckJ2N1GsbKMmOeo/tg/PZ7OWK1pBe9p7ZNmkMSSmPkQNwSo7Mf4IKhOs2QVLV 3TzIfRbt0hRu71HCk64+ccWng5xOlju8ZwKXajhv6BA9kuiwHncQpVTzfwXLuRDKp5Ek bYRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ipgJDQIx; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y9-20020a1709027c8900b001a60e787d36si3996163pll.266.2023.04.10.08.43.26; Mon, 10 Apr 2023 08:43:37 -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=@intel.com header.s=Intel header.b=ipgJDQIx; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230056AbjDJPm7 (ORCPT + 99 others); Mon, 10 Apr 2023 11:42:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229711AbjDJPm4 (ORCPT ); Mon, 10 Apr 2023 11:42:56 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB79A5BA2; Mon, 10 Apr 2023 08:42:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681141375; x=1712677375; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=OwXZLZleXFeAooPhA0PTrMxq3lQ05ppIoojJrb4Dj0Y=; b=ipgJDQIxec8L1Hh52GCYMbNCE6rSSbLBMv4Kvoa6ZhVyfodCpuz3G+lF 4qgpYamvNVU+YCzaDm94zXk+vPzJKnXdoQUPGaRDRjgCfOZTOmiS3i2BU kpH+jO4LQQB6Li53V43tXu+zmpSsJIKfCOfVbo5uBmDylTkEwe6kPaGig CXpx6dCOY6tQDkDFRkFIfVFk7OxfN+Dli8WaUYxv6GiCHLrM9QwKXu0FE okeoQA2cuMAMMbya+otWW2NWQrIz/BanweXHT17MKlh8/VIKCDeXeJ3gY Fix2N7ZMATvC1wCuQoh8fyI9g/zu/j1eYmehUL+BH/41cSiIn5Yx3I+rC A==; X-IronPort-AV: E=McAfee;i="6600,9927,10676"; a="340868146" X-IronPort-AV: E=Sophos;i="5.98,333,1673942400"; d="scan'208";a="340868146" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2023 08:42:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10676"; a="757482046" X-IronPort-AV: E=Sophos;i="5.98,333,1673942400"; d="scan'208";a="757482046" Received: from linux-builds1.an.intel.com ([10.122.105.32]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2023 08:42:54 -0700 From: dinh.nguyen@linux.intel.com To: linux-hwmon@vger.kernel.org Cc: dinguyen@kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, jdelvare@suse.com, linux@roeck-us.net, Dinh Nguyen , Andy Shevchenko Subject: [PATCH 1/5] units: add a macro for MILLIVOLT_PER_VOLT Date: Mon, 10 Apr 2023 10:33:10 -0500 Message-Id: <20230410153314.27127-1-dinh.nguyen@linux.intel.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 From: Dinh Nguyen Add a define for MILLIVOLT_PER_VOLT. Reviewed-by: Andy Shevchenko Signed-off-by: Dinh Nguyen --- include/linux/units.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/units.h b/include/linux/units.h index 2793a41e73a2..5b797535e1b9 100644 --- a/include/linux/units.h +++ b/include/linux/units.h @@ -31,6 +31,8 @@ #define MICROWATT_PER_MILLIWATT 1000UL #define MICROWATT_PER_WATT 1000000UL +#define MILLIVOLT_PER_VOLT 1000UL + #define ABSOLUTE_ZERO_MILLICELSIUS -273150 static inline long milli_kelvin_to_millicelsius(long t) -- 2.40.0