summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-07-05 22:44:50 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-07-09 19:19:24 +0300
commitd05374dee295d771261d382f97c0c23cb15aa104 (patch)
treeda93c4ff681ac66cf1b13fa5d354f58b364abbed /rust
parent4acab508eb03dc1827db6005764de29299e07569 (diff)
downloadlinux-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 'rust')
0 files changed, 0 insertions, 0 deletions