diff options
author | Guenter Roeck <linux@roeck-us.net> | 2022-11-10 07:24:55 -0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-11-14 19:04:37 +0100 |
commit | ed97d10a8b2c78d1664b01658c5f581e6791ff7d (patch) | |
tree | 3876b7fa295e9ce3f179f6cf4a0acf1f457532b2 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
parent | 1c6b30060777352e7881383bab726046d8c3c610 (diff) |
thermal/core: Move parameter validation from __thermal_zone_get_temp to thermal_zone_get_temp
All callers of __thermal_zone_get_temp() already validated the
thermal zone parameters. Move validation to thermal_zone_get_temp()
where it is actually needed. Also add kernel documentation for
__thermal_zone_get_temp(), listing the requirement that the
function must be called with validated parameters and with thermal
device mutex held.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions