linux/drivers/gpu/drm/amd
Wang Xiayang 3bd532692d drm/amdgpu: replace simple_strtol() by kstrtou32()
The simple_strtol() function is deprecated. kstrto[l,u32]() is
the correct replacement as it can properly handle overflows.

This patch replaces the deprecated simple_strtol() use introduced recently.
As clk is of type uint32_t, we are safe to use kstrtou32().

It is also safe to return zero on string parsing error,
similar to the case of returning zero if buf is empty in parse_clk().

Fixes: bb5a2bdf36 ("drm/amdgpu: support dpm level modification under virtualization v3")
Signed-off-by: Wang Xiayang <xywang.sjtu@sjtu.edu.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-07-16 13:09:09 -05:00
..
acp treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
amdgpu drm/amdgpu: replace simple_strtol() by kstrtou32() 2019-07-16 13:09:09 -05:00
amdkfd drm/amdkfd: Consistently apply noretry setting 2019-07-16 13:02:55 -05:00
display drm/amd/display: return 'NULL' instead of 'false' from dcn20_acquire_idle_pipe_for_layer 2019-07-16 13:02:51 -05:00
include drm/amd/powerplay: increase the SMU msg response waiting time 2019-07-11 14:37:23 -05:00
powerplay drm/amdgpu: remove memset after kzalloc 2019-07-16 13:09:05 -05:00