linux/drivers/gpu/drm/amd/powerplay/hwmgr
Arnd Bergmann eafc9c2704 amdgpu: use NULL instead of 0 for pointer
In the AMD powerplay driver, a pointer is checked for validity by
comparing against an integer '0', which causes a harmless warning
when building with "make W=1":

drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/processpptables.c:1502:16: error: ordered comparison of pointer with integer zero [-Werror=extra]

This changes the code to the more conventional "if (pointer)" check.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2016-07-07 14:54:43 -04:00
..
cz_clockpowergating.c drm/amd/powerplay: mark phm_master_table_* structs as const 2016-05-04 20:20:17 -04:00
cz_clockpowergating.h drm/amd/powerplay: Delete dead struct declaration 2016-05-04 20:30:31 -04:00
cz_hwmgr.c drm/amd/powerplay: change backend allocation to backend init 2016-07-07 14:51:37 -04:00
cz_hwmgr.h amd/powerplay: Add structures required to report configuration change 2015-12-21 16:42:54 -05:00
fiji_clockpowergating.c drm/amdgpu/fiji: set UVD CG state when enabling UVD DPM (v2) 2016-05-04 20:30:44 -04:00
fiji_clockpowergating.h drm/amd/powerplay: add multimedia power gating support for Fiji. 2015-12-21 16:42:44 -05:00
fiji_dyn_defaults.h drm/amd/powerplay: add Fiji DPM support. 2015-12-21 16:42:17 -05:00
fiji_hwmgr.c drm/amd/powerplay: remove useless soft pptable in Asic related backend 2016-07-07 14:54:09 -04:00
fiji_hwmgr.h drm/amd/powerplay: remove useless soft pptable in Asic related backend 2016-07-07 14:54:09 -04:00
fiji_powertune.c drm/amd/powerplay: add function disable_dpm_tasks for Fiji 2016-07-07 14:51:35 -04:00
fiji_powertune.h drm/amd/powerplay: add function disable_dpm_tasks for Fiji 2016-07-07 14:51:35 -04:00
fiji_thermal.c drm/amd/powerplay: fix fan speed percent setting error on Fiji 2016-05-04 20:20:46 -04:00
fiji_thermal.h drm/amd/powerplay: add functions set/get_fan_control_mode in hwmgr for Fiji. 2015-12-21 16:42:49 -05:00
functiontables.c drm/amd/powerplay: mark phm_master_table_* structs as const 2016-05-04 20:20:17 -04:00
hardwaremanager.c drm/amd/powerplay: add event task of disable dynamic state management 2016-07-07 14:51:35 -04:00
hwmgr_ppt.h drm/amd/powerplay: update powerplay table parsing 2016-06-15 02:00:46 -04:00
hwmgr.c drm/amd/powerplay: add uploading pptable and resetting powerplay support 2016-07-07 14:51:38 -04:00
Makefile drm/amdgpu: change ELM/BAF to Polaris10/Polaris11 2016-05-04 20:27:57 -04:00
polaris10_clockpowergating.c drm/amd/powerplay: set UVD clocks bypass mode for Polaris10 2016-07-07 14:51:32 -04:00
polaris10_clockpowergating.h drm/amdgpu: change ELM/BAF to Polaris10/Polaris11 2016-05-04 20:27:57 -04:00
polaris10_dyn_defaults.h drm/amdgpu: change ELM/BAF to Polaris10/Polaris11 2016-05-04 20:27:57 -04:00
polaris10_hwmgr.c drm/amd/powerplay: remove useless soft pptable in Asic related backend 2016-07-07 14:54:09 -04:00
polaris10_hwmgr.h drm/amd/powerplay: remove useless soft pptable in Asic related backend 2016-07-07 14:54:09 -04:00
polaris10_powertune.c drm/amd/powerplay: add disable dpm tasks for Polaris10 2016-07-07 14:51:37 -04:00
polaris10_powertune.h drm/amd/powerplay: add disable dpm tasks for Polaris10 2016-07-07 14:51:37 -04:00
polaris10_thermal.c drm/amd/powerplay: enable avfs feature for polaris 2016-06-21 10:22:41 -04:00
polaris10_thermal.h drm/amdgpu: change ELM/BAF to Polaris10/Polaris11 2016-05-04 20:27:57 -04:00
pp_acpi.c drm/amd/powerplay: need to notify system bios pcie device ready 2016-06-21 10:22:37 -04:00
ppatomctrl.c drm/amd/powerplay: enable avfs feature for polaris 2016-06-21 10:22:41 -04:00
ppatomctrl.h drm/amd/powerplay: enable avfs feature for polaris 2016-06-21 10:22:41 -04:00
ppevvmath.h drm/amd: make some function-local tables static const 2016-05-04 20:20:20 -04:00
pppcielanes.c drm/amd/powerplay: add Tonga dpm support (v3) 2015-12-21 16:42:15 -05:00
pppcielanes.h drm/amd/powerplay: add Tonga dpm support (v3) 2015-12-21 16:42:15 -05:00
processpptables.c amdgpu: use NULL instead of 0 for pointer 2016-07-07 14:54:43 -04:00
processpptables.h
tonga_clockpowergating.c drm/amd/powerplay: Add CG and PG support for tonga 2015-12-21 16:42:23 -05:00
tonga_clockpowergating.h drm/amd/powerplay: Add CG and PG support for tonga 2015-12-21 16:42:23 -05:00
tonga_dyn_defaults.h drm/amd/powerplay: add Tonga dpm support (v3) 2015-12-21 16:42:15 -05:00
tonga_hwmgr.c drm/amd/powerplay: remove useless soft pptable in Asic related backend 2016-07-07 14:54:09 -04:00
tonga_hwmgr.h drm/amd/powerplay: remove useless soft pptable in Asic related backend 2016-07-07 14:54:09 -04:00
tonga_powertune.h drm/amd/powerplay: add Tonga dpm support (v3) 2015-12-21 16:42:15 -05:00
tonga_pptable.h drm/amd/powerplay: update powerplay table parsing 2016-06-15 02:00:46 -04:00
tonga_processpptables.c drm/amd/powerplay: keep soft_pp_table pointer value for re-uploading 2016-07-07 14:51:34 -04:00
tonga_processpptables.h drm/amd/powerplay: add Tonga dpm support (v3) 2015-12-21 16:42:15 -05:00
tonga_thermal.c drm/amd/powerplay: fix fan speed percent setting error on Tonga 2016-05-04 20:20:42 -04:00
tonga_thermal.h drm/amd/powerplay: add functions set/get_fan_control_mode in hwmgr for Tonga. 2015-12-21 16:42:48 -05:00