From e4a17d6379009adcd0ada768be6b0420f7f0f137 Mon Sep 17 00:00:00 2001 From: Seema Khowala Date: Tue, 31 Jan 2017 13:41:14 -0800 Subject: gpu: nvgpu: gp10b: removed static keyword Removed static keyword for t19x usage -int gp10b_tegra_get_clocks(struct device *dev); -int gp10b_tegra_reset_assert(struct device *dev); -int gp10b_tegra_reset_deassert(struct device *dev); JIRA GV11B-34 Change-Id: I0bcb02db431b3a11f1b0e40776698c5dd3a9703d Signed-off-by: Seema Khowala Reviewed-on: http://git-master/r/1296847 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gp10b/platform_gp10b.h | 25 +++++++++++++++++++++++++ drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c | 6 +++--- 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 drivers/gpu/nvgpu/gp10b/platform_gp10b.h diff --git a/drivers/gpu/nvgpu/gp10b/platform_gp10b.h b/drivers/gpu/nvgpu/gp10b/platform_gp10b.h new file mode 100644 index 00000000..66261989 --- /dev/null +++ b/drivers/gpu/nvgpu/gp10b/platform_gp10b.h @@ -0,0 +1,25 @@ +/* + * GP10B Platform (SoC) Interface + * + * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + */ + +#ifndef _GP10B_PLATFORM_H_ +#define _GP10B_PLATFORM_H_ + +struct device; + +int gp10b_tegra_get_clocks(struct device *dev); +int gp10b_tegra_reset_assert(struct device *dev); +int gp10b_tegra_reset_deassert(struct device *dev); + +#endif diff --git a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c index 90d0bb57..6795c99a 100644 --- a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c +++ b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c @@ -69,7 +69,7 @@ static void gr_gp10b_remove_sysfs(struct device *dev); * the clock information to gp10b platform data. */ -static int gp10b_tegra_get_clocks(struct device *dev) +int gp10b_tegra_get_clocks(struct device *dev) { struct gk20a_platform *platform = dev_get_drvdata(dev); unsigned int i; @@ -264,7 +264,7 @@ static int gp10b_tegra_suspend(struct device *dev) return 0; } -static int gp10b_tegra_reset_assert(struct device *dev) +int gp10b_tegra_reset_assert(struct device *dev) { struct gk20a_platform *platform = gk20a_get_platform(dev); int ret = 0; @@ -277,7 +277,7 @@ static int gp10b_tegra_reset_assert(struct device *dev) return ret; } -static int gp10b_tegra_reset_deassert(struct device *dev) +int gp10b_tegra_reset_deassert(struct device *dev) { struct gk20a_platform *platform = gk20a_get_platform(dev); int ret = 0; -- cgit v1.2.2