linux/drivers/gpu/drm/amd/display/amdgpu_dm
Gustavo A. R. Silva fe96b99dc7 drm/amdgpu: Replace kzalloc with kcalloc
Replace kzalloc() function with its 2-factor argument form, kcalloc().

This patch replaces cases of:

	kzalloc(a * b, gfp)

with:
	kcalloc(a, b, gfp)

Also, improve the coding style and the use of sizeof during
allocation by changing sizeof(struct dc_surface_update) and
sizeof(struct dc_plane_state) to sizeof(*updates) and
sizeof(*surfaces), correspondingly.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-01-25 16:15:35 -05:00
..
amdgpu_dm.c drm/amdgpu: Replace kzalloc with kcalloc 2019-01-25 16:15:35 -05:00
amdgpu_dm.h drm/amd/display: Add below the range support for FreeSync 2018-12-18 17:39:42 -05:00
amdgpu_dm_color.c
amdgpu_dm_crc.c
amdgpu_dm_debugfs.c drm/amd/display: Add backlight pwm debugfs 2019-01-14 15:04:38 -05:00
amdgpu_dm_debugfs.h
amdgpu_dm_helpers.c drm/amd/display: Use 100 Hz precision for pipe pixel clocks 2019-01-14 15:04:39 -05:00
amdgpu_dm_irq.c
amdgpu_dm_irq.h
amdgpu_dm_mst_types.c drm/amd/display: Shift dc link aux to aux_payload 2019-01-14 15:40:33 -05:00
amdgpu_dm_mst_types.h
amdgpu_dm_pp_smu.c drm/amd/display: dal-pplib interface refactor dal part 2019-01-14 15:41:01 -05:00
amdgpu_dm_services.c
amdgpu_dm_trace.h drm/amd/display: Add tracing to dc 2018-12-05 17:49:49 -05:00
Makefile