diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-07-05 22:44:50 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-07-09 19:19:24 +0300 |
commit | d05374dee295d771261d382f97c0c23cb15aa104 (patch) | |
tree | da93c4ff681ac66cf1b13fa5d354f58b364abbed /scripts | |
parent | 4acab508eb03dc1827db6005764de29299e07569 (diff) | |
download | linux-d05374dee295d771261d382f97c0c23cb15aa104.tar.xz |
thermal: core: Change passive_delay and polling_delay data type
It is better to use unsigned int as the data type for the passive_delay
and polling_delay arguments of thermal_zone_device_register_with_trips()
because they are implicitly cast to unsigned int anyway in
thermal_set_delay_jiffies() and if they happen to be negative at that
point, the resulting behavior may not be as desired.
Update the thermal_zone_device_register_with_trips() definition
accordingly.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://patch.msgid.link/5803791.DvuYhMxLoT@rjwysocki.net
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions