Skip to content

Commit

Permalink
thermal: rockchip: fix a trivial typo
Browse files Browse the repository at this point in the history
This patchset trys to dictate unified format for driver.

Signed-off-by: Caesar Wang <[email protected]>
Signed-off-by: Eduardo Valentin <[email protected]>
  • Loading branch information
Caesar-github authored and Eduardo Valentin committed Jan 7, 2016
1 parent 74bf8ef commit 13c1cfd
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions drivers/thermal/rockchip_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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,
Expand All @@ -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;
};

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 13c1cfd

Please sign in to comment.