From patchwork Thu Apr 1 18:36:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 413662 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp839695jai; Thu, 1 Apr 2021 12:25:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMqfljixs7XWY/p7m2P03+kjtne1rs1A3mryBCYya06cEBatRUI6SJp3PpCgj5cBh0dIvR X-Received: by 2002:aca:180c:: with SMTP id h12mr7560402oih.109.1617305109129; Thu, 01 Apr 2021 12:25:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617305109; cv=none; d=google.com; s=arc-20160816; b=etKLnFhelofUvm/KUYfUKSQD30s9h6ElK2/PRzoiuNkdMG/wOdZHSgvlnSvnOt/3Kz vDqEq0Qu1+Pa1t1Y5MyX2iMr/KXw+AjO0E595tbTdf76RKO+x1g+VuKIvo5toAd93jsM 33wGwO3BmV8/un65CDKV0+NEEqa7b/e3ZQ62DBpgSGLQNO85dEg3XFslakzfwW9A/2nR u3MmiZI7WSV5iLYebFjP8OtdfU6h+ukSEQwohGtwEMSiKR1kdNRCeqovBQkBTq13DWHY 78h6HaSzIiCr26Zd/dBgJQTXc4YrCNTh9ty/NhpgqlMnKFFvWnfAZrVT9WQezYD3f91L UG5w== 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=mWp87AvriRPuSbwzklCYB4OLn1zwKcfSlyq/Ns8RiTU=; b=V6ZlPAAtOLJBmc0LW3bklsxzAVxy2XUcIIjVIyGi/MR+EY/caB6ify0+rRUVumDvmF n/6jv4xaZpA602KHHXf4bxTVlKYRKuhmtNbGcP4pcT+6y2ANqqBJPI+jv+Mz1f3XBsY+ 7iluYnSTG9qQoD4MXlXDBF1KyHV5LruUz+iYT4du1KOgon8e0A0PBlofXAasjQqlXame RDjVqNtDcsG7pwKCO4wosAQ9IJSpFpu+9sJk9uRGrLYUjDCAUYHIAdf7bAs+G1tyWZpI 6H+RuIVwiZbTfxYPxxTxtuWGrO09VZQmNlnqj/O+dFJPCbouCh6Va/q5yQS8JWq/W3CU YvMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qXsmmasl; 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 p9si6010211oti.257.2021.04.01.12.25.08; Thu, 01 Apr 2021 12:25:09 -0700 (PDT) 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=qXsmmasl; 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 S235351AbhDATZC (ORCPT + 7 others); Thu, 1 Apr 2021 15:25:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234646AbhDATYk (ORCPT ); Thu, 1 Apr 2021 15:24:40 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C820C0319E3 for ; Thu, 1 Apr 2021 11:37:16 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id x13so2737878wrs.9 for ; Thu, 01 Apr 2021 11:37:16 -0700 (PDT) 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=mWp87AvriRPuSbwzklCYB4OLn1zwKcfSlyq/Ns8RiTU=; b=qXsmmaslDu7+q9I+6oxHqAzPye7Ygo83eFdoYV6MpA8awK+MWTJkISpji/Zceg8hf9 XfuXrlJf9Qk2NMbj7SQYi7XnPg/6mZ4RNqGc138v0Ax/12WAFwxD8YQKXCF7jnZpcz/M FNpF38UDo9p1bQNV5yvJsGoDbJnPMFYnxMSj2NMC5Jm5r7EsrWqiap1sswpQOvAqhjJ9 D3fJk5hu1b/tNajDtx5BWi7FsrZMTxkKaFmip7WlAxXoC9VMvwYlSLBjowG8CvQpS5TV 2IWKuvrzxnXJ+Ac1/8tDQ6A2lrn6mVbGPs+3JVvr9Ak+y+YaVSQyiu3PlQRS8kH02HUq dBCA== 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=mWp87AvriRPuSbwzklCYB4OLn1zwKcfSlyq/Ns8RiTU=; b=d9WBSWEfK2Z6FzoM8K/m5IgPHb5mqGUjw5w2EJqYGf3qmZ+/d+KmvdyvU9OMjk3o7s 8jFEZ2rP02d1bY6o60xvsaM74BukIFkSZ7VWDGeFER6OINSn16ZQkLF2CNImFmpvsTPd 7GyjdMXTBQeXg9USrtVCYUF25PS0sGNQGk5Z2o4ZnGjar34GTdAaYTTxpczwSJiGERqr f95pqYIpox1I2dg3IJxcaBO92QbjMgX4F6JOUqPnfNhGcdfcy/duPNwexn73NrTF3Ykb jQb4j1aFPxBRmGvOIjMLGgTS9e+S/loFHXE+cj9GqmdMXYipOEONXF/iC1Jg4ssgX8Du h1QQ== X-Gm-Message-State: AOAM532KkajpSWqdFwTkFy4Mw4Q+skBD/ePT5qmNWIvmj8gQ5yTXxvPt WNrqNfO4DvGRuaFmINI/zlhebg== X-Received: by 2002:a5d:6242:: with SMTP id m2mr11160995wrv.384.1617302235113; Thu, 01 Apr 2021 11:37:15 -0700 (PDT) Received: from localhost.localdomain ([82.142.26.252]) by smtp.gmail.com with ESMTPSA id b131sm9111490wmb.34.2021.04.01.11.37.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Apr 2021 11:37:14 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, lukasz.luba@arm.com, rafael@kernel.org, gregkh@linuxfoundation.org Subject: [PATCH v6 6/7] powercap/drivers/dtpm: Export the symbols for the modules Date: Thu, 1 Apr 2021 20:36:53 +0200 Message-Id: <20210401183654.27214-6-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210401183654.27214-1-daniel.lezcano@linaro.org> References: <20210401183654.27214-1-daniel.lezcano@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The DTPM framework provides a generic API to register devices which power capable. The devices may be compiled as modules while the framework is not. Export the necessary API to let the drivers register themselves. Signed-off-by: Daniel Lezcano --- drivers/powercap/dtpm.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.1 diff --git a/drivers/powercap/dtpm.c b/drivers/powercap/dtpm.c index b389bc397cdf..733567bbe0be 100644 --- a/drivers/powercap/dtpm.c +++ b/drivers/powercap/dtpm.c @@ -289,6 +289,7 @@ int dtpm_update_power(struct dtpm *dtpm) return ret; } +EXPORT_SYMBOL_GPL(dtpm_update_power); /** * dtpm_release_zone - Cleanup when the node is released @@ -486,6 +487,7 @@ void dtpm_init(struct dtpm *dtpm, struct dtpm_ops *ops) dtpm->ops = ops; } } +EXPORT_SYMBOL_GPL(dtpm_init); /** * dtpm_unregister - Unregister a dtpm node from the hierarchy tree @@ -500,6 +502,7 @@ void dtpm_unregister(struct dtpm *dtpm) pr_debug("Unregistered dtpm node '%s'\n", dtpm->zone.name); } +EXPORT_SYMBOL_GPL(dtpm_unregister); /** * dtpm_register - Register a dtpm node in the hierarchy tree @@ -574,6 +577,7 @@ int dtpm_register(const char *name, struct dtpm *dtpm, struct dtpm *parent) return 0; } +EXPORT_SYMBOL_GPL(dtpm_register); static int __init init_dtpm(void) {