aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaesar Wang <wxt@rock-chips.com>2015-12-03 03:48:39 -0500
committerEduardo Valentin <edubezval@gmail.com>2016-01-06 21:06:37 -0500
commit13c1cfda1a6cb0325029ce8bbb8d6483244d5c92 (patch)
treecedff05247ca966e681161da3d9a03da57070212
parent74bf8efb5fa6e958d2d7c7917b8bb672085ec0c6 (diff)
thermal: rockchip: fix a trivial typo
This patchset trys to dictate unified format for driver. Signed-off-by: Caesar Wang <wxt@rock-chips.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
-rw-r--r--drivers/thermal/rockchip_thermal.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c
index e845841ab036..ae796eca2ff5 100644
--- a/drivers/thermal/rockchip_thermal.c
+++ b/drivers/thermal/rockchip_thermal.c
@@ -38,7 +38,7 @@ enum tshut_mode {
38}; 38};
39 39
40/** 40/**
41 * the system Temperature Sensors tshut(tshut) polarity 41 * The system Temperature Sensors tshut(tshut) polarity
42 * the bit 8 is tshut polarity. 42 * the bit 8 is tshut polarity.
43 * 0: low active, 1: high active 43 * 0: low active, 1: high active
44 */ 44 */
@@ -57,10 +57,10 @@ enum sensor_id {
57}; 57};
58 58
59/** 59/**
60* The conversion table has the adc value and temperature. 60 * The conversion table has the adc value and temperature.
61* ADC_DECREMENT is the adc value decremnet.(e.g. v2_code_table) 61 * ADC_DECREMENT: the adc value is of diminishing.(e.g. v2_code_table)
62* ADC_INCREMNET is the adc value incremnet.(e.g. v3_code_table) 62 * ADC_INCREMENT: the adc value is incremental.(e.g. v3_code_table)
63*/ 63 */
64enum adc_sort_mode { 64enum adc_sort_mode {
65 ADC_DECREMENT = 0, 65 ADC_DECREMENT = 0,
66 ADC_INCREMENT, 66 ADC_INCREMENT,
@@ -72,16 +72,17 @@ enum adc_sort_mode {
72 */ 72 */
73#define SOC_MAX_SENSORS 2 73#define SOC_MAX_SENSORS 2
74 74
75/**
76 * struct chip_tsadc_table: hold information about chip-specific differences
77 * @id: conversion table
78 * @length: size of conversion table
79 * @data_mask: mask to apply on data inputs
80 * @mode: sort mode of this adc variant (incrementing or decrementing)
81 */
75struct chip_tsadc_table { 82struct chip_tsadc_table {
76 const struct tsadc_table *id; 83 const struct tsadc_table *id;
77
78 /* the array table size*/
79 unsigned int length; 84 unsigned int length;
80
81 /* that analogic mask data */
82 u32 data_mask; 85 u32 data_mask;
83
84 /* the sort mode is adc value that increment or decrement in table */
85 enum adc_sort_mode mode; 86 enum adc_sort_mode mode;
86}; 87};
87 88
@@ -617,7 +618,7 @@ rockchip_thermal_register_sensor(struct platform_device *pdev,
617 return 0; 618 return 0;
618} 619}
619 620
620/* 621/**
621 * Reset TSADC Controller, reset all tsadc registers. 622 * Reset TSADC Controller, reset all tsadc registers.
622 */ 623 */
623static void rockchip_thermal_reset_controller(struct reset_control *reset) 624static void rockchip_thermal_reset_controller(struct reset_control *reset)