linux/drivers/gpu/drm/amd/display/dc/calcs
Harry Wentland 2004f45ef8 drm/amd/display: Use kernel alloc/free
Abstractions are frowned upon.

cocci script:
virtual context
virtual patch
virtual org
virtual report

@@
expression ptr;
@@

- dm_alloc(ptr)
+ kzalloc(ptr, GFP_KERNEL)

@@
expression ptr, size;
@@

- dm_realloc(ptr, size)
+ krealloc(ptr, size, GFP_KERNEL)

@@
expression ptr;
@@

- dm_free(ptr)
+ kfree(ptr)

v2: use GFP_KERNEL, not GFP_ATOMIC. add cocci script

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-09-28 16:46:15 -04:00
..
bw_fixed.c
custom_float.c drm/amd/display: Enable regamma 25 segments and use double buffer. 2017-09-26 17:14:18 -04:00
dce_calcs.c drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
dcn_calc_auto.c drm/amd/display: fix PHYCLK in formula. 2017-09-26 18:16:13 -04:00
dcn_calc_auto.h drm/amdgpu/display: Add calcs code for DCN 2017-09-26 18:06:47 -04:00
dcn_calc_math.c drm/amdgpu/display: Add calcs code for DCN 2017-09-26 18:06:47 -04:00
dcn_calc_math.h drm/amdgpu/display: Add calcs code for DCN 2017-09-26 18:06:47 -04:00
dcn_calcs.c drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
Makefile drm/amd/display: Don't guard x86 in Makefile 2017-09-26 18:07:37 -04:00