Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp963456pxk; Thu, 10 Sep 2020 03:29:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySTFbo5F903Ev71JYTv4NKvL7i4UgX/k9PUyWyUha67heVmzEGRJpJJeP77PzXixhqhOzr X-Received: by 2002:aa7:c2d6:: with SMTP id m22mr8375580edp.311.1599733766710; Thu, 10 Sep 2020 03:29:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599733766; cv=none; d=google.com; s=arc-20160816; b=JmAHYFdbXKfsIyOqE4pOO1N2gOnkZ0u2x2lucdlVB1bnhj/mpqp/yWBhRub7LhOskX ScKsIN4CQHqoSFakfOkI9XqUxuYbrocYsRbvKtDg+zFtLl4V1tFeVyRX7SNCHhFOtA9z 7/ySCQ2Dhx2tyl8YOOzN0QpyTvEb5g2dex895/A+wDcA2uWijxTdAEBq8NpC96JhiJY9 lHlY39vX00q10E59qFUuM3DpudHPM9DxK48xjsKobPXQhD8FBbCpJw9MxXv/4GQzprhY sOLnTk7zf8hCelfg/c+DohNQU/3urp4P/6YI9WgFuehQ2W2a3FUmYc2ul9NukSXYeql3 drFQ== 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=SbKG0N8hypBxQGzQ7pwKl490K6QKq1RJyvVZnBJobMCuSp2d2VyKDE8sXwYjDV5AJz z8VofI1zYzo1o+fHJ4WzR/tuEbCklCzluJEVLJJHe1Pmxyn8auB9kinFkeXsrG2TE0Ga glkeN+GcPNYE9/2UW2arKFOL+Saxvpp+e3mNRJs0LsULb/Fy4svjrnkw4XFIS9MgDU5c aOqpm1c7QL0pYxdic//RHy8dxdbSdZ9Z9PkN2H8MfDOjDY6xGsUZhkJgmXRW0LaApPak D4VgeTxRah6I16BFOV7pkM301TZ6a7sSzIunUcCUqmmNG43bfMa+MfUwN2CQWlyoq5/l J+iA== 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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 c23si3132331edn.110.2020.09.10.03.29.04; Thu, 10 Sep 2020 03:29:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1730868AbgIJK2G (ORCPT + 99 others); Thu, 10 Sep 2020 06:28:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730851AbgIJK1v (ORCPT ); Thu, 10 Sep 2020 06:27:51 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21094C061756 for ; Thu, 10 Sep 2020 03:27:51 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id b124so4340130pfg.13 for ; Thu, 10 Sep 2020 03:27:51 -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=ZbdKRdv9lNQJKYVu9wFs+FYihwQet9jXKQdHWYiajTdx6aY3MlU8Ze/uQNTERFczNE 9JBG3AwEAAovfMb20nBVjUlXftE5fhy4wX6mftyMZuJUN5tsLDY3EtfyZBqmoFfQDSmy vqXs3UlreVXIHV/2S3y+EgQtxcOqKQdR7YpZrcPk0dY15VPUEcU1RsFL8N2xiYbQ6h5C v+VDQ3P9wgq3oNZChU+BzftQQ03akDtBvF1bUbacNvLh670oRGT1TgLVM2KGG2HQKLQD qPFd2KpwgFI926UTSoJflv+043a4GBvAHhVBbSRVkvWVz1J8iUgoJf6MFTMkYErebQn7 RAGQ== X-Gm-Message-State: AOAM530hTnS86g48pSRbwzYXdrPzHU+wk69zfaqszZaotZN4Bki/4vRx Er9+EuTCNkafu8rkG6pLaPEocHW777fqyw== 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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. -- 2.25.1