Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932130AbdGXNgE (ORCPT ); Mon, 24 Jul 2017 09:36:04 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:33745 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755626AbdGXNfr (ORCPT ); Mon, 24 Jul 2017 09:35:47 -0400 From: Ricardo Ribalda Delgado To: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Rex Zhu , Tom St Denis , Eric Huang , Huang Rui , Dan Carpenter , "Edward O'Callaghan" , Kees Cook , "Andrew F. Davis" , Hawking Zhang , Baoyou Xie , Masahiro Yamada , Colin Ian King , =?UTF-8?q?Nils=20Wallm=C3=A9nius?= , Joe Perches , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Ricardo Ribalda Delgado Subject: [PATCH 01/14] amdgpu: powerplay: Remove unused function Date: Mon, 24 Jul 2017 15:35:27 +0200 Message-Id: <20170724133540.32200-2-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170724133540.32200-1-ricardo.ribalda@gmail.com> References: <20170724133540.32200-1-ricardo.ribalda@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1920 Lines: 56 amd_powerplay_display_configuration_change is never called. Signed-off-by: Ricardo Ribalda Delgado --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 21 --------------------- drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h | 3 --- 2 files changed, 24 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c index f73e80c4bf33..1ee7aa5546bf 100644 --- a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c +++ b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c @@ -1237,27 +1237,6 @@ int amd_powerplay_reset(void *handle) return pem_handle_event(eventmgr, AMD_PP_EVENT_COMPLETE_INIT, &event_data); } -/* export this function to DAL */ - -int amd_powerplay_display_configuration_change(void *handle, - const struct amd_pp_display_configuration *display_config) -{ - struct pp_hwmgr *hwmgr; - struct pp_instance *pp_handle = (struct pp_instance *)handle; - int ret = 0; - - ret = pp_check(pp_handle); - - if (ret != 0) - return ret; - - hwmgr = pp_handle->hwmgr; - mutex_lock(&pp_handle->pp_lock); - phm_store_dal_configuration_data(hwmgr, display_config); - mutex_unlock(&pp_handle->pp_lock); - return 0; -} - int amd_powerplay_get_display_power_level(void *handle, struct amd_pp_simple_clock_info *output) { diff --git a/drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h b/drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h index 07e9c0b5915d..ae49af5cc5d1 100644 --- a/drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h +++ b/drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h @@ -407,9 +407,6 @@ int amd_powerplay_destroy(void *handle); int amd_powerplay_reset(void *handle); -int amd_powerplay_display_configuration_change(void *handle, - const struct amd_pp_display_configuration *input); - int amd_powerplay_get_display_power_level(void *handle, struct amd_pp_simple_clock_info *output); -- 2.13.2