Skip to content

Commit bd31afe

Browse files
konradybciorobclark
authored andcommitted
drm/msm/a6xx: Remove static keyword from sptprac en/disable functions
These two will be reused by at least A619_holi in the non-gmu paths. Turn them non-static them to make it possible. Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/542751/ Signed-off-by: Rob Clark <robdclark@chromium.org>
1 parent 87cc0d0 commit bd31afe

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

drivers/gpu/drm/msm/adreno/a6xx_gmu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ void a6xx_gmu_clear_oob(struct a6xx_gmu *gmu, enum a6xx_gmu_oob_state state)
354354
}
355355

356356
/* Enable CPU control of SPTP power power collapse */
357-
static int a6xx_sptprac_enable(struct a6xx_gmu *gmu)
357+
int a6xx_sptprac_enable(struct a6xx_gmu *gmu)
358358
{
359359
int ret;
360360
u32 val;
@@ -376,7 +376,7 @@ static int a6xx_sptprac_enable(struct a6xx_gmu *gmu)
376376
}
377377

378378
/* Disable CPU control of SPTP power power collapse */
379-
static void a6xx_sptprac_disable(struct a6xx_gmu *gmu)
379+
void a6xx_sptprac_disable(struct a6xx_gmu *gmu)
380380
{
381381
u32 val;
382382
int ret;

drivers/gpu/drm/msm/adreno/a6xx_gmu.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,5 +193,7 @@ int a6xx_hfi_set_freq(struct a6xx_gmu *gmu, int index);
193193

194194
bool a6xx_gmu_gx_is_on(struct a6xx_gmu *gmu);
195195
bool a6xx_gmu_sptprac_is_on(struct a6xx_gmu *gmu);
196+
void a6xx_sptprac_disable(struct a6xx_gmu *gmu);
197+
int a6xx_sptprac_enable(struct a6xx_gmu *gmu);
196198

197199
#endif

0 commit comments

Comments
 (0)