Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4905467rwr; Mon, 8 May 2023 14:43:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ44W5C4KMVKYsqpkoF/u8oMy0cpgjSpEWYbDAzOlqpUf4/2emIc9K07NyU0kSAwU/Me/zZZ X-Received: by 2002:a17:902:c102:b0:1ab:eee:c5d7 with SMTP id 2-20020a170902c10200b001ab0eeec5d7mr10937626pli.48.1683582209191; Mon, 08 May 2023 14:43:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683582209; cv=none; d=google.com; s=arc-20160816; b=abdDSjbUeDHU5+gBsXNaaVT/nEokgA2tOYZElPLuDx564LHtHRTjlQP6IZeGkbPbeN dsGx5VYwROUgHHVgY86gZ6FuePKSnzp9i1mjkNFaPJWjyNlHLm3J7LCvsIY5hKS5RdoN oYT2PpPP8zAkvJhZcm+qcFsXG5kFuYz31stXTJdTfd3ycifquOpdlQkIRFGIDbrho2VU RRBMHs0ENxzjTv9YdWBdzOCEQlmE6GQEvIMZhH15Fad9lcfh7vhIoFCexHzr5+VdaYE0 WOypH7e80oXtUhdKnYX8R1xNGE2KucN1TLWGASBScXO/Fp9+qXdupiFYNUOcNaIyIRDR l+kA== 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=G+ks+plWgr0BjD+AsFy4QMQQyNOFny9oL5vJHfdMlF8e492Yeyb0AmBrkwNukgp26j U7GEIg0VCK/GLq2MvOZG7BMjES/zRYprEGtkLbA7Gxsom4aZKzNv4bWCqutuSLaWOWex pf/md0qp1gXLRRzUTsr27xgzb+vVGfcrRgi1f9txX3vlCD3Bo/DKQwcEWZ1XUu96X+gY q3V1Dl3349QeyZ7rYRHWr9PJa7e7b4uCWV6m50bF5LYF7YHzTDC6EpULHTgVvqeVGony P98ycv/jlAaB2eUN3uQ60qI2q/d2hhnXu3CAfHgmcxuAsXTF7uy0XIYlL37LX0Zp86wx Q64Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ws889pWf; 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 a11-20020a170902b58b00b001ac671a8fd3si4600481pls.110.2023.05.08.14.43.14; Mon, 08 May 2023 14:43:29 -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=Ws889pWf; 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 S233588AbjEHVkE (ORCPT + 99 others); Mon, 8 May 2023 17:40:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233464AbjEHVkB (ORCPT ); Mon, 8 May 2023 17:40:01 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A8F1729C; Mon, 8 May 2023 14:39:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683581972; x=1715117972; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=OwXZLZleXFeAooPhA0PTrMxq3lQ05ppIoojJrb4Dj0Y=; b=Ws889pWf2LRGA2TyY3PiOBrCtrfQIagiY6T6AV8Qbw2WuMwHev7KplqM iqFusd2U6P0NP70gpv+ZN+YA7erRbxnIuJoENsNl4dFYWrUk7o+8oXhgM CbFh2iABZyULaegjZxf1XUjZdb6vjpnviruhp8wFe9oRPmfJ0pCGURh6q rkKEkYY9tocS8m86bxtYSGEw2CPVrv3dKNRvWOk2lPlPkUnUvPPZksy6U 2VUzjXvUp5pA1Nou4Cmwut/aoe7KzaPZE08v3WFeWya8MWfZywTuYSeUb yJRkVzQcMudpV0fVkcx4GdTC/n+uEsYis47Dr51m4dIkrXAyubUBpmnHp g==; X-IronPort-AV: E=McAfee;i="6600,9927,10704"; a="349796674" X-IronPort-AV: E=Sophos;i="5.99,259,1677571200"; d="scan'208";a="349796674" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2023 14:38:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10704"; a="945018712" X-IronPort-AV: E=Sophos;i="5.99,259,1677571200"; d="scan'208";a="945018712" Received: from linux-builds1.an.intel.com ([10.122.105.32]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2023 14:38:56 -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: [PATCHv2 1/6] units: add a macro for MILLIVOLT_PER_VOLT Date: Mon, 8 May 2023 16:28:47 -0500 Message-Id: <20230508212852.8413-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=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 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