From patchwork Thu Sep 10 10:27:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 249607 Delivered-To: patch@linaro.org Received: by 2002:a17:906:6011:0:0:0:0 with SMTP id o17csp1250597ejj; Thu, 10 Sep 2020 03:28:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyi5f4GqfjPYw5AhHHJH69bCy6iTDA0znRHXSaLoIpv5jC8SzlVgsxQiOyI1pdiXPtqu5q8 X-Received: by 2002:a17:906:cf8b:: with SMTP id um11mr8496241ejb.540.1599733690637; Thu, 10 Sep 2020 03:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599733690; cv=none; d=google.com; s=arc-20160816; b=BEojof4U1uJylwhoeKFDgYAWjTw/9K1FvFWQCr37fycfOGb8j8CYSxySy9r0hCd2ok 2xNUjQ/fzh1gHN9ldIqkJU6VIrbaRKF7lS1zm8sAIWosCUA8DOxhe1RlWnfBNXN148sh gRk17pwciTwYcqwFUXj2+joMbWUTgZh8v8cTkhMGosz6562UJhaGKcVfWoIcMkEBi7Vd iWrHwax9nFMmd1jS+DCCDNs04AfN24VB+QfxaATxtbKXNCUdEaK6eagMsPxwGuk1YAeI CECQPDI4lPLzN+768iF6WstJRW0RZvOY/RC3mG8lNTYn/jmZlNSwDir+pbhYxjwlVPwV Ea4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=LZQZwXwRu53YKSXrfkUA0WjeNn/V21ZhpJY2/Y12QvI=; b=z+LGhF/GbkpnB/n7nBsXtYC+WgKTrLUXPfju1rxN47yuNQSfvWVpFaE8rvT88eq4Mb fb7qbbl46RFSfT+tzZEkM0nV7N3y5S+yYRCsI7QnTzD8rXEfMzOrxiC1LTG/NXsGDf6j R0KC4omK8XY8rfQuhJAFuZ4o9Qufh0hwTULnrasCVPZjiGX3TdDp4N31kzJM+OP2CJAk z2F538JgybtWaZPCQ2syaUX40voS4SS7aSkzmBTuxV/8Uk/iNkprsc8XMNxM4eb6C3os MDjRqhtQ4D+58Vf86SrbgLxFmZIonzscbq+SGMW58DLBDnqvsrdy9MUwN+1oCPz9La1x Jlsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TzPt0pmd; 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 p21si3481535edq.151.2020.09.10.03.28.10; Thu, 10 Sep 2020 03:28:10 -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=TzPt0pmd; 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 S1730872AbgIJK2G (ORCPT + 10 others); Thu, 10 Sep 2020 06:28:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730856AbgIJK1v (ORCPT ); Thu, 10 Sep 2020 06:27:51 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E6ACC061573 for ; Thu, 10 Sep 2020 03:27:50 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id l126so4375448pfd.5 for ; Thu, 10 Sep 2020 03:27:50 -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:mime-version :content-transfer-encoding; bh=LZQZwXwRu53YKSXrfkUA0WjeNn/V21ZhpJY2/Y12QvI=; b=TzPt0pmdNspzQOTFKvx730AMrhJJADm6SbOatLVVciImg0+7g406SmECpp/TEcMqRk 286/u47cu3OOeQjZ7+aCD7K2ITZwnS4UZBphCBBO8VqHPC+2sdgt2jbpL5G3Gub1kWuI 9+oDszZ9EoGdzvisVMzMJPCPtuDYCqH3/GCiM62RQeEJ10KS1+Y+xCjkFR6M/WadeY9K C/QDyORxqjQN5FX5TLy4T7XMzAZTj9AGV6avnS+GY+ksFyO9AY3OmtdXb2BTGGQrCjkG ll3Cykr20wvPpmBg50/kGoK1zTizaFIWM2Q1FTnjyqpDm98rncC6qZIkvMW9w+D8hRPJ f+ZA== 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:mime-version :content-transfer-encoding; bh=LZQZwXwRu53YKSXrfkUA0WjeNn/V21ZhpJY2/Y12QvI=; b=sxANyeQWgmdDfo3zWFKsrofqYPWEWV8a8av60QoQIBnOcPNDwnr98BVK9yeYv1uKda 2L7Yu+T67ADpDnULiXwmLHM9oij3eChJJtkC/QvnqqGltzQ1/ZEv9w069T0RznGG8gcE UfuQoXF1EZ1JtDMDw8CVEtB0IMn8rCTsH+qwKzsKTLwLYIC+sqvx2jsJ+AkI+tMGJyfW vJ+GRqjtHt7zxMQ4E/Rqgs4X0Bkp+gt67e6TokldnorTB10AS7mK42YL1QxgIrjMGHwi 0fb1L9ZQS0Q5m68Q2I0ksUXWds3puUXj9Iq6MflX1olH+Nq4wF8BkATw2FTlKOygc8lN wplg== X-Gm-Message-State: AOAM533KwOEACPlQeqjUoMkHCyUAfJaTKpeRYyalV1AoJKeXHC4KH008 ypewu2FnH1CNTgV0kb1aAiUuZg== X-Received: by 2002:a62:52c8:0:b029:13e:d13d:a10b with SMTP id g191-20020a6252c80000b029013ed13da10bmr4696466pfb.39.1599733669949; Thu, 10 Sep 2020 03:27:49 -0700 (PDT) Received: from localhost ([103.208.69.30]) by smtp.gmail.com with ESMTPSA id m14sm5392656pfo.202.2020.09.10.03.27.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 03:27:48 -0700 (PDT) From: Amit Kucheria X-Google-Original-From: Amit Kucheria To: linux-kernel@vger.kernel.org, srinivas.pandruvada@linux.intel.com, "Rafael J. Wysocki" Cc: linux-pm@vger.kernel.org Subject: [PATCH] powercap: make documentation reflect code Date: Thu, 10 Sep 2020 15:57:46 +0530 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Fix up documentation of the struct members to reflect reality. Also fixup a stray whitespace. Signed-off-by: Amit Kucheria --- include/linux/powercap.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) -- 2.25.1 diff --git a/include/linux/powercap.h b/include/linux/powercap.h index 4537f57f9e42f..3d557bbcd2c71 100644 --- a/include/linux/powercap.h +++ b/include/linux/powercap.h @@ -44,19 +44,18 @@ struct powercap_control_type_ops { }; /** - * struct powercap_control_type- Defines a powercap control_type - * @name: name of control_type + * struct powercap_control_type - Defines a powercap control_type * @dev: device for this control_type * @idr: idr to have unique id for its child - * @root_node: Root holding power zones for this control_type + * @nr_zones: counter for number of zones of this type * @ops: Pointer to callback struct - * @node_lock: mutex for control type + * @lock: mutex for control type * @allocated: This is possible that client owns the memory * used by this structure. In this case * this flag is set to false by framework to * prevent deallocation during release process. * Otherwise this flag is set to true. - * @ctrl_inst: link to the control_type list + * @node: linked-list node * * Defines powercap control_type. This acts as a container for power * zones, which use same method to control power. E.g. RAPL, RAPL-PCI etc. @@ -129,7 +128,7 @@ struct powercap_zone_ops { * this flag is set to false by framework to * prevent deallocation during release process. * Otherwise this flag is set to true. - * @constraint_ptr: List of constraints for this zone. + * @constraints: List of constraints for this zone. * * This defines a power zone instance. The fields of this structure are * private, and should not be used by client drivers.