msm: lmh_lite: Fix the intensity calculation

Fix the LMH throttling intensity calculation to report
the intensity in percentage.

Change-Id: I64ac5855b4e9b9cb5ef7dde939102a31d2a08e52
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
This commit is contained in:
Ram Chandrasekar 2015-06-15 09:35:01 -06:00 committed by Gerrit - the friendly Code Review server
parent fdac81c14b
commit a3676ca9e8
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ static void lmh_read_and_update(struct lmh_driver_data *lmh_dat)
lmh_sensor->last_read_value =
(payload.sensor[idx].max_intensity) ?
(payload.sensor[idx].intensity
((payload.sensor[idx].intensity * 100)
/ payload.sensor[idx].max_intensity)
: payload.sensor[idx].intensity;
trace_lmh_sensor_reading(