From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F04C7C76196 for ; Mon, 10 Apr 2023 15:42:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230008AbjDJPm7 (ORCPT ); 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@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