Greg, Dan,
On 16-03-2013 12:16, Greg KH wrote:
On Sat, Mar 16, 2013 at 08:46:03AM -0400, Eduardo Valentin wrote:
Hello Dan,
On 16-03-2013 05:05, Dan Carpenter wrote:
I've reviewed this set.
I hate to make people redo whole patchset sets, and I hate
re-reviewing code. Obviously, I
trying the driver, these patches are
also available, as usual, here:
g...@gitorious.org:thermal-framework/thermal-framework.git
thermal_work/omap/ti-thermal-rename
https://git.gitorious.org/thermal-framework/thermal-framework.git
thermal_work/omap/ti-thermal-rename
BR,
Eduardo Valentin (8):
sta
Return the proper error value in _omap_bandgap_read_threshold.
Cc: Dan Carpenter
Signed-off-by: Eduardo Valentin
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap-thermal/omap-bandgap.c
index 33bfe3b..cb7aa35 100644
--- a/drivers/staging/omap-thermal/omap
Even if the IRQ is not firing because it is ONE_SHOT and disable
at INTC level, the IRQ handler must use spin_lock_irqsave.
It is necessary to disable IRQs from the current
CPU while it is holding a spin_lock which is need.
Cc: Dan Carpenter
Signed-off-by: Eduardo Valentin
diff --git a
Use a shorter name to bandgap pointer.
Cc: Benoit
Signed-off-by: Eduardo Valentin
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap-thermal/omap-bandgap.c
index a4ac06c..89361fe 100644
--- a/drivers/staging/omap-thermal/omap-bandgap.c
+++ b/drivers/staging/omap
Move _ti_bandgap_write_threshold and _ti_bandgap_read_threshold to static
area, as they are local functions.
Signed-off-by: Eduardo Valentin
diff --git a/drivers/staging/ti-soc-thermal/ti-bandgap.c
b/drivers/staging/ti-soc-thermal/ti-bandgap.c
index 6a0b1ac..c850e13 100644
--- a/drivers
Follow Documentation/CodingStyle and use sizeof(*pointer)
instead of sizeof(struct type).
Signed-off-by: Eduardo Valentin
diff --git a/drivers/staging/ti-soc-thermal/ti-bandgap.c
b/drivers/staging/ti-soc-thermal/ti-bandgap.c
index b74e847..4382c0c 100644
--- a/drivers/staging/ti-soc-thermal/ti
.
Signed-off-by: Eduardo Valentin
diff --git a/drivers/staging/ti-soc-thermal/ti-bandgap.c
b/drivers/staging/ti-soc-thermal/ti-bandgap.c
index c850e13..b74e847 100644
--- a/drivers/staging/ti-soc-thermal/ti-bandgap.c
+++ b/drivers/staging/ti-soc-thermal/ti-bandgap.c
@@ -249,7 +249,7 @@ static
This patch updates the documentation to remove
all warnings and errors reported by scripts/kernel-doc.
Most are missing arguments due to wrong format.
Cc: Nishanth Menon
Signed-off-by: Eduardo Valentin
diff --git a/drivers/staging/ti-soc-thermal/ti-bandgap.c
b/drivers/staging/ti-soc-thermal
Dan,
On 18-03-2013 12:39, Dan Carpenter wrote:
Thanks.
Acked-by: Dan Carpenter
regards,
dan carpenter
Thanks for taking the time to check this code.
Eduardo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
Mo
On 18-03-2013 15:16, Dan Carpenter wrote:
On Mon, Mar 18, 2013 at 10:59:10AM -0400, Eduardo Valentin wrote:
Even if the IRQ is not firing because it is ONE_SHOT and disable
at INTC level, the IRQ handler must use spin_lock_irqsave.
It is necessary to disable IRQs from the current
CPU while it
Hello Greg,
On 18-03-2013 10:59, Eduardo Valentin wrote:
Hi Greg,
I am sending extra patches on omap-thermal driver, under staging.
There are couple of fixes based on Dan Carpenter's review on
the last patch set I sent. On top of these, there are some
changes on the naming conventio
driver, these patches are
also available, as usual, here:
g...@gitorious.org:thermal-framework/thermal-framework.git
thermal_work/omap/ti-thermal-rename
https://git.gitorious.org/thermal-framework/thermal-framework.git
thermal_work/omap/ti-thermal-rename
All best,
Eduardo Valentin (12):
staging
Return the proper error value in _omap_bandgap_read_threshold.
Acked-by: Dan Carpenter
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b
Use a shorter name to bandgap pointer.
Cc: Benoit
Cc: Dan Carpenter
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c| 562 ++--
drivers/staging/omap-thermal/omap-bandgap.h| 28 +-
drivers/staging/omap-thermal/omap-thermal
Carpenter
Signed-off-by: Eduardo Valentin
---
drivers/staging/Kconfig|2 +-
drivers/staging/Makefile |2 +-
drivers/staging/omap-thermal/Makefile |5 -
.../{omap-thermal => ti-soc-thermal}/Kconfig |
This patch renames the Kconfig options to cope with
the new naming convention.
Cc: Santosh Shilimkar
Cc: Benoit
Cc: Nishanth Menon
Cc: Dan Carpenter
Signed-off-by: Eduardo Valentin
---
drivers/staging/Makefile|2 +-
drivers/staging/ti-soc-thermal/Kconfig | 14
Move _ti_bandgap_write_threshold and _ti_bandgap_read_threshold to static
area, as they are local functions.
Signed-off-by: Eduardo Valentin
---
drivers/staging/ti-soc-thermal/ti-bandgap.c |8
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/ti-soc
Follow Documentation/CodingStyle and use sizeof(*pointer)
instead of sizeof(struct type).
Signed-off-by: Eduardo Valentin
---
drivers/staging/ti-soc-thermal/ti-bandgap.c |3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/ti-soc-thermal/ti-bandgap.c
b
.
Signed-off-by: Eduardo Valentin
---
drivers/staging/ti-soc-thermal/ti-bandgap.c| 20 --
drivers/staging/ti-soc-thermal/ti-bandgap.h| 65 +++-
drivers/staging/ti-soc-thermal/ti-thermal-common.c |2 +-
3 files changed, 51 insertions(+), 36 deletions
This patch updates the documentation to remove
all warnings and errors reported by scripts/kernel-doc.
Most are missing arguments due to wrong format.
Cc: Nishanth Menon
Signed-off-by: Eduardo Valentin
---
drivers/staging/ti-soc-thermal/ti-bandgap.c | 56 +-
drivers
While updating talert thresholds, threshold cold must
always be lower than threshold hot. This patch fixes
the function ti_bandgap_update_alert_threshold to only
change the thresholds by applying a hysteresis when
they violate this condition.
Signed-off-by: Eduardo Valentin
---
drivers/staging
Wrong threshold cold values may be written with current implementation.
This patch fixes the threshold update function by simplifying the
bitfield manipulation sequence.
Signed-off-by: Eduardo Valentin
---
drivers/staging/ti-soc-thermal/ti-bandgap.c |8
1 files changed, 4
While writing talert thresholds, propagate the error code from
ti_bandgap_update_alert_threshold to the caller of
_ti_bandgap_write_threshold.
Signed-off-by: Eduardo Valentin
---
drivers/staging/ti-soc-thermal/ti-bandgap.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git
Hello Nishanth,
On 19-03-2013 15:22, Nishanth Menon wrote:
On 10:54-20130319, Eduardo Valentin wrote:
* @adc_start_val: ADC conversion table starting value
You may still want to fix warnings generated by:
./scripts/kernel-doc -v drivers/staging/ti-soc-thermal/ti-bandgap.c>/dev/n
Hello Rui,
Here is V2 of temperature lookup helper function. This has been
split into two API as suggested on V1.
The usage of it is exemplified on patch 03.
Eduardo Valentin (3):
thermal: introduce thermal_zone_get_zone_by_name helper function
thermal: expose thermal_zone_get_temp API
required parameters are invalid, it will return
the corresponding error code (ERR_PTR).
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_sys.c | 34 ++
include/linux/thermal.h |1 +
2 files changed, 35 insertions(+), 0 deletions(-)
diff --git
This patch exports the thermal_zone_get_temp API so that driver
writers can fetch temperature of thermal zones managed by other
drivers.
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_sys.c | 20 +---
include/linux/thermal.h |1 +
2 files changed, 18
For boards that provide a PCB sensor close to SoC junction
temperature, it is possible to remove the cumulative heat
reported by the SoC temperature sensor.
This patch changes the extrapolation computation to consider
an external sensor in the extrapolation equations.
Signed-off-by: Eduardo
On 04-04-2013 13:12, R, Durgadoss wrote:
-Original Message-
From: Eduardo Valentin [mailto:eduardo.valen...@ti.com]
Sent: Thursday, April 04, 2013 3:43 AM
To: Zhang, Rui
Cc: linux...@vger.kernel.org; linux-kernel@vger.kernel.org; R, Durgadoss;
Eduardo Valentin
Subject: [PATCHv2 1/3
On 29-03-2013 10:26, Zhang Rui wrote:
this is the preparation work to build all the thermal core framework
source file, like governors, cpu cooling, etc, into one module.
No functional change in this patch.
Signed-off-by: Zhang Rui
Durga and me have already reviewed and acked this patch. Can
Hello Rui,
Here is V3 of temperature lookup helper function. This has been
split into two API as suggested on V1 and now the API returns an
specific error code for multiple matches, as suggested in V2.
The usage of it is exemplified on patch 03.
Eduardo Valentin (3):
thermal: introduce
This patch exports the thermal_zone_get_temp API so that driver
writers can fetch temperature of thermal zones managed by other
drivers.
Acked-by: Durgadoss R
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_sys.c | 20 +---
include/linux/thermal.h |1
For boards that provide a PCB sensor close to SoC junction
temperature, it is possible to remove the cumulative heat
reported by the SoC temperature sensor.
This patch changes the extrapolation computation to consider
an external sensor in the extrapolation equations.
Signed-off-by: Eduardo
required parameters are invalid, it will return
the corresponding error code (ERR_PTR).
Cc: Durgadoss R
Signed-off-by: Eduardo Valentin
---
drivers/thermal/thermal_sys.c | 38 ++
include/linux/thermal.h |1 +
2 files changed, 39 insertions(+), 0
are based on linux-2.6/master.
Patches are also available here:
g...@gitorious.org:thermal-framework/thermal-framework.git
thermal_work/omap/omap-thermal-fixes
https://git.gitorious.org/thermal-framework/thermal-framework.git
thermal_work/omap/omap-thermal-fixes
Cheers,
Eduardo Valentin (12
From: Ruslan Ruslichenko
To indicate that board was shut down due to TSHUT temperature reached
it is good to print some information message before shutting down.
Signed-off-by: Ruslan Ruslichenko
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c |3 +++
1
: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 18 +-
drivers/staging/omap-thermal/omap-bandgap.h |1 +
drivers/staging/omap-thermal/omap4-thermal.c |3 +++
drivers/staging/omap-thermal/omap5-thermal.c |3 ++-
4 files changed, 19 insertions(+), 6
From: Radhesh Fadnis
This patch updates the ADC conversion table for OMAP5430 ES2.0 devices.
Signed-off-by: Radhesh Fadnis
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.h |5 +-
drivers/staging/omap-thermal/omap5-thermal.c | 170
In order to keep same nomenclature across the register definition,
this change will make all 'MM' suffixes to be named 'GPU'.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.h | 16
drivers/staging/omap-thermal/omap5-thermal.
On OMAP54xx ES2.0 there is no single read and only one mode: continuous
mode. For this reason, there is no point in defining register fields
for these operations.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap5-thermal.c | 11 ---
1 files changed, 0 insertions
. Buffer clear bit
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.h | 65 +-
drivers/staging/omap-thermal/omap5-thermal.c | 48 +--
2 files changed, 106 insertions(+), 7 deletions(-)
diff --git a/drivers/staging/omap
This patch updates the OMAP54xx data structure to use
the right clock source name for ES2.0.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap5-thermal.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap5-thermal.c
On OMAP54xx there is only one counter register. For this reason,
each domain must use the same counter register. This patch changes
the data definition to coupe with this.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.h |5 -
drivers/staging/omap-thermal
it is possible to freeze the history buffer or not.
b. whenever reading the temperature, it will fetch from
DTEMP1 instead of DTEMP or DTEMP0.
This WA is applicable only for OMAP5430 ES2.0.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 60
This patch removes from OMAP54xx the features:
. CLK_CTRL
. COUNTER
. MODE_CONFIG
Because these features are not present in OMAP54xx ES2.0
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap5-thermal.c |5 +
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git
Simple update on documentation file for DT. This patch
also adds an example for OMAP4430 and 0MAP4470, and also updated
OMAP4460's example.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap_bandgap.txt | 27 ++--
1 files changed, 24 insertions(
Update documentation with DT example for OMAP54xx devices.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap_bandgap.txt |9 +
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap_bandgap.txt
b/drivers/staging/omap
This patch removes from data structure the double reference of
the conversion table. It keeps the reference coming from bandgap
data definition. The patch also adapts the code accordingly.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c |8
drivers
This patch simply changes the name of files containing data structure
definition.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/Makefile |4 +-
drivers/staging/omap-thermal/omap4-thermal-data.c | 262 +++
drivers/staging/omap-thermal/omap4
This patch changes the clock management code to also update
the clock prepare counter, this way we won't skip the enable/disable
operation due to prepare dependencies.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 10 +-
1 files chang
Mike,
On 27-02-2013 01:35, Mike Turquette wrote:
Quoting Eduardo Valentin (2013-02-26 14:53:38)
This patch changes the clock management code to also update
the clock prepare counter, this way we won't skip the enable/disable
operation due to prepare dependencies.
Signed-off-by: Ed
Correcting misspelling inside the clk.txt.
Signed-off-by: Eduardo Valentin
---
Documentation/clk.txt |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/clk.txt b/Documentation/clk.txt
index 1943fae..4274a54 100644
--- a/Documentation/clk.txt
+++ b
Durga,
On 05-02-2013 06:46, Durgadoss R wrote:
This patch creates sensor level APIs, in the
generic thermal framework.
A Thermal sensor is a piece of hardware that can report
temperature of the spot in which it is placed. A thermal
sensor driver reads the temperature from this sensor
and report
On 05-02-2013 06:46, Durgadoss R wrote:
This patch adds a new thermal_zone structure to
thermal.h. Also, adds zone level APIs to the thermal
framework.
A thermal zone is a hot spot on the platform, which
can have one or more sensors and cooling devices attached
to it. These sensors can be mapped
Durga,
On 05-02-2013 06:46, Durgadoss R wrote:
This patch creates new APIs to add/remove a
cdev to/from a zone. This patch does not change
the old cooling device implementation.
Same comments on patch 02/08 I want to rise here:
- Consider using linked list
- You may have contention on your in
Durga,
Same comments on patch 02/08 I want to rise here:
- Minors on strlcpy, snprintf, devm_ helpers
- documentation in the code for these helper functions and also better
naming..
On 05-02-2013 06:46, Durgadoss R wrote:
This patch adds a trip point related sysfs nodes
for each sensor unde
Durga,
On 05-02-2013 06:46, Durgadoss R wrote:
This patch creates a thermal map sysfs node under
/sys/class/thermal/zoneX/. This contains
entries named mapY_trip_type, mapY_sensor_name,
mapY_cdev_name, mapY_trip_mask, mapY_weights.
Some of the previous comments apply here as well, specially
Durga,
On 05-02-2013 06:46, Durgadoss R wrote:
This patch set is a v3 of the previous versions submitted here:
[v2]: http://lwn.net/Articles/531720/
[v1]: https://lkml.org/lkml/2012/12/18/108
[RFC]:https://patchwork.kernel.org/patch/1758921/
On this version I have some implementation detail
/omap-thermal-optimizations
For lo guys, I will appreciate your testing results on other devices.
Cheers,
Eduardo Valentin (50):
staging: omap-thermal: use BIT() macro
staging: omap-thermal: remove unused _SHIFT macros
staging: omap-thermal: create header for register, bitfields and
For code readability, this patch changes the bit definition
under omap-bandgap.h to use the BIT() macro.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.h | 96 +-
1 files changed, 48 insertions(+), 48 deletions(-)
diff --git a/drivers
As these macros are not used on any part of the code,
this patch removes all the *_SHIT defines.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.h | 57 ---
1 files changed, 0 insertions(+), 57 deletions(-)
diff --git a/drivers/staging
. omap5xxx-bandgap.h will contain only defines and bitfields
related to OMAP5 based devices
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.h | 195
drivers/staging/omap-thermal/omap4-thermal-data.c |1 +
drivers/staging/omap-thermal
This patch updates the existing data structures for omap bandgap,
inside omap-bandgap.h.
TODO: remove unused fields.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.h | 230 ++-
1 files changed, 189 insertions(+), 41 deletions(-)
diff
simple changes on alignments and white spaces
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 32 --
1 files changed, 15 insertions(+), 17 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap
The omap_bandgap_get_sensor_data() function returns ERR_PTR(),
but it can also return NULL, in case of initilization, so we need to use
IS_ERR_OR_NULL() rather than only IS_ERR().
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-thermal-common.c |4 ++--
1 files changed
This patch introduce a macro to read, update, write bitfields.
It will be specific to bandgap data structures.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 178 +++
1 files changed, 46 insertions(+), 132 deletions(-)
diff --git a
Document the helper functions that manipulates registers and their
bitfields. All of them work based of the io mapped area.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 23 ++-
1 files changed, 22 insertions(+), 1 deletions(-)
diff
Change the way the omap_bandgap_power is written so that it has only
one exit entry (Documentation/CodingStyle).
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/omap
Document function which reads temperature register, depending on
bandgap device version.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 10 ++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
Simple rename to cope with file naming pattern.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap-thermal/omap-bandgap.c
Document the helper function to turn a bandgap device on and off.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c |8
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap
Document the Talert IRQ handler.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 12 +++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap-thermal/omap-bandgap.c
index
Documents tshut handler better.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 10 +-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap-thermal/omap-bandgap.c
index
There is no need to assign twice the same variable with the very same value.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c |1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging
There is no need to re-read status register.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 10 +-
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap-thermal/omap
This is introduces a series of marks inside the code to
better organize functions per group, aggregating their
functionality.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/staging
Group of simple functions aggregating basic functionality.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap-thermal/omap
Section of IRQ handlers
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap-thermal/omap-bandgap.c
index 7927c59..ded2c8c
Section of ADC helpers functions
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap-thermal/omap-bandgap.c
index ded2c8c
Rename adc_to_temp_conversion to omap_bandgap_adc_to_mcelsius. This name,
though longer, describes better the function.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 12 ++--
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers
Follow Documentation/CodingStyle while doing omap_bandgap_adc_to_mcelsius.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 11 ---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers
Document the conversion function.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 11 +++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap-thermal/omap-bandgap.c
index
Rename temp_to_adc_conversion to omap_bandgap_mcelsius_to_adc. This name,
though longer, describes better the function.
This patch also changes this function signature so the function follows
the style of this file.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap
Follow Documentation/CodingStyle while doing omap_bandgap_mcelsius_to_adc
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 11 +++
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers
As we have one conv table per bandgap device and not per sensor,
this patch changes the data structures so that the conv table
min and max values are now part of bandgap_data and not sensor_data.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 39
Document the conversion function.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 10 ++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap-thermal/omap-bandgap.c
index
This patch improves the add_hyst function by:
. Renaming it to omap_bandgap_add_hyst
. Moving it to the ADC conversion functions section
. Changing its signature to follow the driver standard
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 42
Document function to handle hysteresis.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 10 ++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap-thermal/omap-bandgap.c
Section of functions manipulating thresholds for Alert and Shutdown.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap
This change improves temp_sensor_unmask_interrupts by:
. renaming it to omap_bandgap_unmask_interrupts
. making it a void function, as there is nothing really to report an error.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 14 --
1 files
Proper document the function to configure the IRQ event masks.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 10 +-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap
Section of helper functions to initilize the bandgap device
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap-thermal/omap
ed to update any threshold.
This patch also removes macros that are used only inside
the _validate helper function.
In this patch there is also an addition of an extra function
section for Exposed APIs, used outside the omap-bandgap.c,
but inside the omap-thermal driver.
Signed-off-by: Eduardo Val
Section with platform device callbacks
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap-thermal/omap-bandgap.c
index
This patch names 'enable_continuous_mode' accordingly to the file
standard naming.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
Simple update on function documentation.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c |9 ++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap-thermal/omap-bandgap.c
Document function to initialize the conversion state machine.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c |8
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap
Document function to program alert thresholds
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 14 ++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap-thermal/omap
Document function to update alert thresholds.
Signed-off-by: Eduardo Valentin
---
drivers/staging/omap-thermal/omap-bandgap.c | 13 +
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap-thermal/omap
1 - 100 of 1922 matches
Mail list logo