From patchwork Wed May 4 06:02:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 9010221 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 77BD69F1C1 for ; Wed, 4 May 2016 06:04:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A26B72026F for ; Wed, 4 May 2016 06:04:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ACCD5202F0 for ; Wed, 4 May 2016 06:04:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757387AbcEDGDw (ORCPT ); Wed, 4 May 2016 02:03:52 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:36241 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757374AbcEDGDp (ORCPT ); Wed, 4 May 2016 02:03:45 -0400 Received: by mail-pa0-f48.google.com with SMTP id bt5so19920142pac.3; Tue, 03 May 2016 23:03:44 -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=KSPwBwHw7G951os4TZqkRKX99moOlfdOaW5ps1KUq5s=; b=yZHYPqUBG6+2IOnS+D2weARYylkBRw0emDUGwqlRM1CowRB8iXyQAsqJbthtq0j9+o fUHhR0v/+PL0Pv9XdUV/QV5ZHSoU3wygwUDVuGiPkR1YQhYP26HJistZn21iZsyc9sgW L/80oavmsCJ+J96URnxqqJ93R4XQHP17F6SyZ9zqDsIxJ8HN/+oe4CRCMwu/e0NXXw+X 24Krx+TeZFWSHeHrpshfxwsdobXlaSWJifhvfdz7naCE1SmC2IQ5lkuh4bp+vY2EmxQx 3I0/C16fdkPgfNsU18tbTbdlXNnoVkYRFKtQYeo1qDc44Ura6R7j9I/EnKIUbRa9NsXi zyYQ== 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=KSPwBwHw7G951os4TZqkRKX99moOlfdOaW5ps1KUq5s=; b=JD7gd2S39Vb28EMxT6VGqCrES98dUkK2KR7sWLN5xMrpbZryOw4NT8aEekltGgSB1Z im6sDCt1djo6DZq+VF+HAU7IktptS0id8TIprnDWQbhImyB9R2MrtUPy3U6nOu/LFNeD iEI7qovQOQnV5A/5e5GdDDt6CyIQZC4ZyUjYzBFzCpo0avO4StNiYm4MlXGqv1cbQBlF KD8zbomtOJxkiLL4wN92DrvGgtK2OcqfS9mHBvJa8WemimVl8IzJjMB3ykoF4XeUP70X m8g3FsA9MeaGivjdWoQsi5AhcdPyQaUd216tkGDSDJYA7bbjOJwax9M6dMhN9z2FLwl8 QP8Q== X-Gm-Message-State: AOPr4FX2g9D5SFy6S/mYuxkPBbochB/xCc0ppPXMI7lSrsBC0IUWyGIs88il0noJUMiVTw== X-Received: by 10.66.217.137 with SMTP id oy9mr9619051pac.103.1462341824434; Tue, 03 May 2016 23:03:44 -0700 (PDT) Received: from localhost ([2601:647:4203:c8e0:7256:81ff:febd:926d]) by smtp.gmail.com with ESMTPSA id v185sm2628499pfb.72.2016.05.03.23.03.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 May 2016 23:03:43 -0700 (PDT) From: Eduardo Valentin To: Rui Zhang Cc: Linux PM , LKML , Eduardo Valentin Subject: [PATCH 31/31] thermal: core: add a comment describing the device management section Date: Tue, 3 May 2016 23:02:45 -0700 Message-Id: <1462341765-13268-32-git-send-email-edubezval@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1462341765-13268-1-git-send-email-edubezval@gmail.com> References: <1462341765-13268-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-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.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 b6a94fa..651467e 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -580,8 +580,15 @@ void thermal_zone_device_passive_update(struct thermal_zone_device *tz, thermal_zone_device_update(tz); } -/* 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;