From patchwork Tue May 31 06:18:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 9143413 X-Patchwork-Delegate: rui.zhang@intel.com 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 8EDCD60761 for ; Tue, 31 May 2016 06:23:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83C8D28187 for ; Tue, 31 May 2016 06:23:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 78B7328227; Tue, 31 May 2016 06:23:00 +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 AA63C2821C for ; Tue, 31 May 2016 06:22:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755953AbcEaGUn (ORCPT ); Tue, 31 May 2016 02:20:43 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33176 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755915AbcEaGUj (ORCPT ); Tue, 31 May 2016 02:20:39 -0400 Received: by mail-pf0-f193.google.com with SMTP id b124so24228753pfb.0; Mon, 30 May 2016 23:20:39 -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=839vuLn30Oz68sgWzWx0eHGFfVqCX8Q+VUwB0G3QMyM=; b=BXnqTv/EFijcSgVezloafsdpHQsDgyw6V7yK2KKebmlyKZJcbVeVTBACyKs86MEUws MkRl/k5H1fW1ooKL8KrcdI7k0izvNepg1NgORX0IBDlBMGZkTv/wtmhKbMFhT7zVK3pg 4JrOZfxB62DPp2ZwUvmQJMrAmWb12HLxWSk0X57XQjZ1HANxdxFRvkUlxx+Cn/xFOBr/ 9lnppyl0iUJucGhSLLDUnEPdUrZVJLBOes/gPtYzcB4ejijj3sS7ItAE+bsxJO55d8ub pSGBQNgCm9lNscXF41caABkK4Vf7eHaH6bdg3Zqdi2jMkUoHPLy1DUTm9eXe70ilE2JF 41fg== 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=839vuLn30Oz68sgWzWx0eHGFfVqCX8Q+VUwB0G3QMyM=; b=AHVE/2uM6LXUvZhxTpKxz32YgDKxCSFjv3kUAZHRHMfM1nE5+z7k2xv3qSlt2Z2rRv SJnNbW6js7NHminNkggm5Cw+PDSHb8BIUbp1PkE5zjok/coR7qXV5GM6pkvGMn9op77x 79tR2L6yhk50LF4y7LbZx/VGmjNpzp5xctYq/jSjmf0HR40lJy8Zv2d7/FO5oj+Jd0Vm XkkDDfh/6YSCg/hWiOROqB+9Hmv2TRom5k3ef7gsP1yxRbCmhBis/e5DihFKXGKSNPi5 0w/dLYW3VQc1wX8UK0/h/1oM/sDTLjbhGtF0Lr1T0sxXM+Sijt20ND11MAer8sKBhr7O RTRQ== X-Gm-Message-State: ALyK8tLbanHGeZcRB5Yfy1CzjBelE9zFBIvZtTSwTkvmOM/Tb2NK9njMfcOidLJHNg6zcQ== X-Received: by 10.98.157.146 with SMTP id a18mr52988523pfk.117.1464675638832; Mon, 30 May 2016 23:20:38 -0700 (PDT) Received: from localhost ([2601:b00:c501:3660:7256:81ff:febd:926d]) by smtp.gmail.com with ESMTPSA id s124sm37141003pfb.63.2016.05.30.23.20.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 May 2016 23:20:38 -0700 (PDT) From: Eduardo Valentin To: Rui Zhang Cc: Linux PM , LKML , Keerthy , Eduardo Valentin Subject: [PATCHv4 39/48] thermal: core: add a comment describing the device management section Date: Mon, 30 May 2016 23:18:46 -0700 Message-Id: <1464675535-2433-40-git-send-email-edubezval@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1464675535-2433-1-git-send-email-edubezval@gmail.com> References: <1464675535-2433-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 comment describing the section with function to handle registration, unregistration, binding, and unbinding of thermal devices. 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 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index 5ce6504..98176aa 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -581,8 +581,15 @@ void thermal_zone_device_unbind_exception(struct thermal_zone_device *tz, mutex_unlock(&thermal_list_lock); } -/* Device management */ - +/* + * Device management section: cooling devices, zones devices, and binding + * + * Set of functions provided by the thermal core for: + * - cooling devices lifecycle: registration, unregistration, + * binding, and unbinding. + * - thermal zone devices lifecycle: registration, unregistration, + * binding, and unbinding. + */ static int get_idr(struct idr *idr, struct mutex *lock, int *id) { int ret;