summaryrefslogtreecommitdiff
path: root/drivers/uwb/ie-rcv.c
diff options
context:
space:
mode:
authorEduardo Valentin <eduardo.valentin@ti.com>2013-11-13 18:11:09 (GMT)
committerJia Hongtao <hongtao.jia@freescale.com>2015-09-24 07:21:52 (GMT)
commit6b43e2b8599a5be8904948591d8bca6e676f5eed (patch)
tree9e827426684f02476d12f00480245884b2ec1833 /drivers/uwb/ie-rcv.c
parentf0a70b99ba5c682eb7f9a86a77b213b557dd2ad6 (diff)
downloadlinux-fsl-qoriq-6b43e2b8599a5be8904948591d8bca6e676f5eed.tar.xz
thermal: fix cpu_cooling max_level behavior
As per Documentation/thermal/sysfs-api.txt, max_level is an index, not a counter. Thus, in case a CPU has 3 valid frequencies, max_level is expected to be 2, for instance. The current code makes max_level == number of valid frequencies, which is bogus. This patch fix the cpu_cooling device by ranging max_level properly. Reported-by: Carlos Hernandez <ceh@ti.com> Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/uwb/ie-rcv.c')
0 files changed, 0 insertions, 0 deletions