From patchwork Mon May 30 21:27:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 9142563 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 80C3160757 for ; Mon, 30 May 2016 21:37:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 732EB27F17 for ; Mon, 30 May 2016 21:37:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 683CC2819C; Mon, 30 May 2016 21:37:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 188BF27F17 for ; Mon, 30 May 2016 21:37:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423003AbcE3V2f (ORCPT ); Mon, 30 May 2016 17:28:35 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34367 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422983AbcE3V23 (ORCPT ); Mon, 30 May 2016 17:28:29 -0400 Received: by mail-pf0-f194.google.com with SMTP id c84so15825308pfc.1; Mon, 30 May 2016 14:28:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZsnDxzmG3gCUA3FcbI0i2DErKuQk1R7CT6qvPSgDAdo=; b=MyNmmr8Ma8dtB9Qy4Y3p4SbmoMVdCKUgDTk4D2WR1KpI3YWVXakv7UIIzhZzjyJL8z cKSHD8iLermmq1ZyNDQy/bksjEQ9UiiDOO89+IwFNvLJNuBMq8eBLyMDnuR1+5O/RMsm HRyzSVJzUcb4yj3sX9YER6t3bxqLZ2Tx+wP5D94dxUdLn83ijfdNFdYQ3WbbWPfKmbGM k3q0Maz8fZM2CBQ5s6V+02KW534X2U6VtLgJvGNiYKd++2RxESnYbW/EdszOKCDaQqxp zViavhVoB8vauvhnRhw9ted/i7YeeBzwbdxVw49E4K52sXBdG9j2+UQ9FTLqGezOEyBm LRGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZsnDxzmG3gCUA3FcbI0i2DErKuQk1R7CT6qvPSgDAdo=; b=DyPj7WIdxW4eBezunAb5EhwUpgRv0OxMnnZ8O/9Pzx0FLSMJIEEydKT3jG5VPFh7TD 5Y3Y1lzziy7AFs5f/NDkQbs15en7MwRQKA8wJ9uMtBX5GYUwfLkpIztd1Ap5/Qupcp5W I0XfQhJQgNuEiKYL43elMpFjZ9Q2sJGB8AsgZrzk89r7HYR4yDtPTcTmpHJNyb2eNelM TR3ghtkVfvpMxqihTsOy6TbqS0AF9sWtemTTs3S2SYUUkz9fNhUKH7lwtF8sMF/g6L0R 5xEs1ezsoCvi0sUe5uD7yiJR89fY7kn09PboIw3Ew/iqNsfsGxsnyglU+Q+OEjEKsv/6 PA4g== X-Gm-Message-State: ALyK8tJRNqC9FOOalYu7iUExkSbLO9BRSUq6QvLfCMDrtkoYzgIqOVntcxfxToG5mVKDUw== X-Received: by 10.98.90.132 with SMTP id o126mr219267pfb.146.1464643707571; Mon, 30 May 2016 14:28:27 -0700 (PDT) Received: from localhost ([2601:b00:c501:3660:7256:81ff:febd:926d]) by smtp.gmail.com with ESMTPSA id vi6sm49584580pab.21.2016.05.30.14.28.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 May 2016 14:28:26 -0700 (PDT) From: Eduardo Valentin To: Rui Zhang Cc: Linux PM , LKML , Eduardo Valentin Subject: [PATCHv2 08/40] thermal: core: improve power actor documentation Date: Mon, 30 May 2016 14:27:27 -0700 Message-Id: <1464643679-2733-9-git-send-email-edubezval@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1464643679-2733-1-git-send-email-edubezval@gmail.com> References: <1464643679-2733-1-git-send-email-edubezval@gmail.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Simple improvement on clarity and removal of checkpatch warning in the documentation of power actor kernel doc. Cc: Zhang Rui Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index 3cbb208..12427cc 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -1142,12 +1142,13 @@ int power_actor_get_min_power(struct thermal_cooling_device *cdev, } /** - * power_actor_set_power() - limit the maximum power that a cooling device can consume + * power_actor_set_power() - limit the maximum power a cooling device consumes * @cdev: pointer to &thermal_cooling_device * @instance: thermal instance to update * @power: the power in milliwatts * - * Set the cooling device to consume at most @power milliwatts. + * Set the cooling device to consume at most @power milliwatts. The limit is + * expected to be a cap at the maximum power consumption. * * Return: 0 on success, -EINVAL if the cooling device does not * implement the power actor API or -E* for other failures.