From patchwork Mon Nov 30 02:28:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 7720551 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E90F9BEEE1 for ; Mon, 30 Nov 2015 02:29:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 169FE205E5 for ; Mon, 30 Nov 2015 02:29:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2BAE9204FB for ; Mon, 30 Nov 2015 02:29:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752639AbbK3C2g (ORCPT ); Sun, 29 Nov 2015 21:28:36 -0500 Received: from mail-pa0-f66.google.com ([209.85.220.66]:34973 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752610AbbK3C2e (ORCPT ); Sun, 29 Nov 2015 21:28:34 -0500 Received: by padhk6 with SMTP id hk6so23284018pad.2; Sun, 29 Nov 2015 18:28:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0ldvQdxa+2B3v1ljNOHqvTvHceRW1/lkh6P2D2x37kM=; b=DWFQrQ4y96s5l/nO3nS6M6P8V9SrX5ElngxLuTs0lc6RrJq+29IxVVhVbdLAsWiGyg EuwINomJsIUbMLKpotkqqBxw1E8jFLT52g2fsKaZok8qmYFN9QylG6+/BddSqs4LbVS+ ZBfqnsom/MzGmv3u2nua5rF42mC3QyQVWqMy3UqYckZhVMefA6qCgNoH1EsZEx22ytjn JVGi+CYuP+Z8cWMCVX3L1XvwzNrq5fCMBs9svmnLrTHYqQRhMvwEgFdyMLilBRxNR3w8 n/LUx1ZwNE15OZ7w7meJWuokyUufI1piQYYssWmd7XoGe9kwhedivXJd/tFzOTGhW1+z x+Nw== X-Received: by 10.66.243.3 with SMTP id wu3mr87307329pac.135.1448850512996; Sun, 29 Nov 2015 18:28:32 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id 25sm10790104pfp.62.2015.11.29.18.28.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 Nov 2015 18:28:31 -0800 (PST) From: Caesar Wang To: Eduardo Valentin Cc: linux-rockchip@lists.infradead.org, Heiko Stuebner , Dan Carpenter , Caesar Wang , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Kosina , Zhang Rui , linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/5] thermal: rockchip: fix a trivial typo Date: Mon, 30 Nov 2015 10:28:04 +0800 Message-Id: <1448850488-16325-2-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1448850488-16325-1-git-send-email-wxt@rock-chips.com> References: <1448850488-16325-1-git-send-email-wxt@rock-chips.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=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, 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 This patchset trys to dictate unified format for driver. Signed-off-by: Caesar Wang --- Changes in v2: - As Heiko comments, move to documenting the fields in the header instead of inside the table. Changes in v1: - Search more trivial typo for me. drivers/thermal/rockchip_thermal.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c index e845841..ae796ec 100644 --- a/drivers/thermal/rockchip_thermal.c +++ b/drivers/thermal/rockchip_thermal.c @@ -38,7 +38,7 @@ enum tshut_mode { }; /** - * the system Temperature Sensors tshut(tshut) polarity + * The system Temperature Sensors tshut(tshut) polarity * the bit 8 is tshut polarity. * 0: low active, 1: high active */ @@ -57,10 +57,10 @@ enum sensor_id { }; /** -* The conversion table has the adc value and temperature. -* ADC_DECREMENT is the adc value decremnet.(e.g. v2_code_table) -* ADC_INCREMNET is the adc value incremnet.(e.g. v3_code_table) -*/ + * The conversion table has the adc value and temperature. + * ADC_DECREMENT: the adc value is of diminishing.(e.g. v2_code_table) + * ADC_INCREMENT: the adc value is incremental.(e.g. v3_code_table) + */ enum adc_sort_mode { ADC_DECREMENT = 0, ADC_INCREMENT, @@ -72,16 +72,17 @@ enum adc_sort_mode { */ #define SOC_MAX_SENSORS 2 +/** + * struct chip_tsadc_table: hold information about chip-specific differences + * @id: conversion table + * @length: size of conversion table + * @data_mask: mask to apply on data inputs + * @mode: sort mode of this adc variant (incrementing or decrementing) + */ struct chip_tsadc_table { const struct tsadc_table *id; - - /* the array table size*/ unsigned int length; - - /* that analogic mask data */ u32 data_mask; - - /* the sort mode is adc value that increment or decrement in table */ enum adc_sort_mode mode; }; @@ -617,7 +618,7 @@ rockchip_thermal_register_sensor(struct platform_device *pdev, return 0; } -/* +/** * Reset TSADC Controller, reset all tsadc registers. */ static void rockchip_thermal_reset_controller(struct reset_control *reset)