From patchwork Tue Dec 8 16:41:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 339752 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3845334jai; Tue, 8 Dec 2020 08:43:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKfxMxD5ATUmVuX8cdLwWKc1MAlWCCJq9K2XAIHk7UbjGD0qgch33UA/Cz0Jc+A0eoGy4a X-Received: by 2002:aa7:c058:: with SMTP id k24mr25498597edo.263.1607445818181; Tue, 08 Dec 2020 08:43:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607445818; cv=none; d=google.com; s=arc-20160816; b=LjJ+sdOvDaqc0ROdRFJDeC3+7TaHpijPfEZb9I9H1nDf9oBi/zIxjuALCGUTX/eyrl Oye9kdb32SU6bPxnJpRv2Jg5nWo9NqXdGNdBuxyd2Md8ThY+YvY9hHHwmAo37yERT/fj pjiDIm3NAzCjr/w9JZIJue62Rf6D4AAojT1ooKBTYvW7dEf+p0ESGd9ZLoTdxJf9rhk7 cVyV70nyK/lZID+mmpwAVUiOABjXLizkTi1+vXa8JZcSkbhHbQakr9okPrmRu0+70bEg 9ysBb36QG8K7Bn6HIiJgbeomP7z/495YR3b5REUoTtSAgI7yga9VDAfRhjsnRZFlk8C8 K9kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=B8ZqKyFHGH5C+QdIaLYiAJfgSlK2HoPCxGbkd1rkjtU=; b=JYFwVOcRUiMlROkLLN4O2n8IauzkigPzukiWxsjpWcH+DrugUvBFVh+2L5WkyQGEed MCw7p1KCd5I90f4qd8tQJopubRyFtGzoWQt3LuHFw2Tb7yQ86U+vbr6+7LH50E2N0zlP WaSjsK2cXfzWvNpAbuWCU3l0O5abGInULunXD19qa/zQssWZRxzG2BRR7+GVz1Fc3OXV 4Z+Fn018c8vhXLCHq7AjTpXvU+bTIfKMYiG+ykh9sjo4yMJmHMP51MXvLr1ltTOEn4yA ZcwTwrmrCG4HZQEdUC/X6VtSLhYbSL6D6ibT7NNatuB0n0rlWBXKVV2CinIcT3G/zwAf lmgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YJGXosdL; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i11si13177074edb.323.2020.12.08.08.43.37; Tue, 08 Dec 2020 08:43:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YJGXosdL; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730481AbgLHQnI (ORCPT + 8 others); Tue, 8 Dec 2020 11:43:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730474AbgLHQnI (ORCPT ); Tue, 8 Dec 2020 11:43:08 -0500 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF760C06179C for ; Tue, 8 Dec 2020 08:42:21 -0800 (PST) Received: by mail-ed1-x541.google.com with SMTP id q16so18201469edv.10 for ; Tue, 08 Dec 2020 08:42:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=B8ZqKyFHGH5C+QdIaLYiAJfgSlK2HoPCxGbkd1rkjtU=; b=YJGXosdLUTFfXiLJhGUn7kcaKGyWwlL+NNVTDbQa1EmRHBT7VYNdOSoTOo+4/pO7Rv f67HYgSUuN/zNwg8creeABtACtEh35QesqX+DtjL7f9RLkZMLQMmOqK/f1LSzENWvRdy 2RhNgiZznYQaDa34tLeh3z1qy8oUPpp2RMFmqNZs9uSqhsGJfm33k5EwJLjg5NRwCwQX e5q9PodIkfLUCoXywx+sArD+xGAC3GhatjyWilLx7BUAFtnIFYeqnodo8s7XG7bvhXeo LEeA3SL41D2ENjNej6A8tEzJULIHEhLjNJ598yPvyB0HQMU46EF2LbQFZAoFxYRBz5NL 08mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=B8ZqKyFHGH5C+QdIaLYiAJfgSlK2HoPCxGbkd1rkjtU=; b=XJiKecPkRzyMmcL0AuBFrFAF+OBF+Of1Xc8pUOMRaTCfI8ges3d8gJju9RSMhe4a8U pwTTHPw+gTqvLc8okrTewc7P6r5LxbgYMI0OI/Xv4cnaafiFMojUohXlf7rWFUqyFcMn vpE+6fbbamR6fuFbyKhIB7TW7hSca0mpXWWBEEae+XW3bTQd863LIMzBpAK2u29pBV/U Dvj1BOVZ3BqAr8oZo5uVqu6iXThJKeefPZWbcuFRCQAlMWk/CpFHF5nxpK6V0gbLQvAz CdwOT9aEoSPEpkmngd7YWreLJH+CP/33pcliNiRq4wkx0DGsla1blGN5lMVv0N01JUrS 5ulw== X-Gm-Message-State: AOAM533OkCANsXLjAGOsOaIl9LVmjF2Z7AQSfSyqt4owordgTTe9t8Uw v7XrR5FuPlaMVnMVsIjUgOQIJg== X-Received: by 2002:a05:6402:139a:: with SMTP id b26mr7346573edv.47.1607445740668; Tue, 08 Dec 2020 08:42:20 -0800 (PST) Received: from localhost.localdomain (lns-bzn-59-82-252-158-132.adsl.proxad.net. [82.252.158.132]) by smtp.gmail.com with ESMTPSA id t19sm16150546eje.86.2020.12.08.08.42.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Dec 2020 08:42:20 -0800 (PST) From: Daniel Lezcano To: rjw@rjwysocki.net Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Lezcano , Thara Gopinath , Lina Iyer , Ram Chandrasekar , Zhang Rui Subject: [PATCH v5 1/4] units: Add Watt units Date: Tue, 8 Dec 2020 17:41:42 +0100 Message-Id: <20201208164145.19493-2-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208164145.19493-1-daniel.lezcano@linaro.org> References: <20201208164145.19493-1-daniel.lezcano@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org As there are the temperature units, let's add the Watt macros definition. Cc: Thara Gopinath Cc: Lina Iyer Cc: Ram Chandrasekar Cc: Zhang Rui Signed-off-by: Daniel Lezcano Reviewed-by: Lukasz Luba --- include/linux/units.h | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.1 diff --git a/include/linux/units.h b/include/linux/units.h index aaf716364ec3..92c234e71cab 100644 --- a/include/linux/units.h +++ b/include/linux/units.h @@ -4,6 +4,10 @@ #include +#define MILLIWATT_PER_WATT 1000L +#define MICROWATT_PER_MILLIWATT 1000L +#define MICROWATT_PER_WATT 1000000L + #define ABSOLUTE_ZERO_MILLICELSIUS -273150 static inline long milli_kelvin_to_millicelsius(long t)