Files
android_kernel_xiaomi_sm8450/drivers/gpu/drm/amd/amdgpu
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
..
2015-06-03 21:03:15 -04:00
2019-06-20 11:36:22 -05:00
2019-06-20 11:36:22 -05:00
2019-06-19 12:07:29 +02:00
2019-06-19 12:07:29 +02:00
2017-10-20 13:28:44 -04:00
2019-01-14 10:58:37 +01:00
2019-06-10 23:00:01 +02:00
2015-06-03 21:03:15 -04:00
2019-06-22 09:34:14 -05:00
2015-06-03 21:03:17 -04:00
2019-07-08 13:56:22 -05:00
2019-06-20 21:16:38 -05:00
2016-08-31 15:21:09 -04:00
2019-06-19 12:07:29 +02:00
2019-06-19 12:07:29 +02:00
2019-06-27 08:56:16 -05:00