提交 4a6554ed 编写于 作者: E Eduardo Valentin 提交者: Greg Kroah-Hartman

staging: omap-thermal: add documentation for omap_bandgap_read_temp

Document function which reads temperature register, depending on
bandgap device version.
Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 7a556e6a
...@@ -109,6 +109,16 @@ static int omap_bandgap_power(struct omap_bandgap *bg_ptr, bool on) ...@@ -109,6 +109,16 @@ static int omap_bandgap_power(struct omap_bandgap *bg_ptr, bool on)
return 0; return 0;
} }
/**
* omap_bandgap_read_temp() - helper function to read sensor temperature
* @bg_ptr: pointer to omap_bandgap structure
* @id: bandgap sensor id
*
* Function to concentrate the steps to read sensor temperature register.
* This function is desired because, depending on bandgap device version,
* it might be needed to freeze the bandgap state machine, before fetching
* the register value.
*/
static u32 omap_bandgap_read_temp(struct omap_bandgap *bg_ptr, int id) static u32 omap_bandgap_read_temp(struct omap_bandgap *bg_ptr, int id)
{ {
struct temp_sensor_registers *tsr; struct temp_sensor_registers *tsr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册