summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/volt/volt_dev.c
diff options
context:
space:
mode:
authorVijayakumar <vsubbu@nvidia.com>2017-05-04 07:13:30 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-05 12:04:15 -0400
commita1e80ec509ed650b21e6a58e2ec58b03779dbfb1 (patch)
treeca3b16e3543954aa8ded1a69a6688a4818870ef7 /drivers/gpu/nvgpu/volt/volt_dev.c
parentee9733e587d977610975435a84e5af7cabba8870 (diff)
gpu: nvgpu: fix error for static code analysis
mark functions local to the file as static fixing errors in volt and flcn modules. Bug 200299572 Change-Id: Ibacbd83649fee3066a90694a3df90bb909b24aa5 Signed-off-by: Vijayakumar <vsubbu@nvidia.com> Reviewed-on: http://git-master/r/1475357 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/volt/volt_dev.c')
-rw-r--r--drivers/gpu/nvgpu/volt/volt_dev.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/volt/volt_dev.c b/drivers/gpu/nvgpu/volt/volt_dev.c
index 9fd80144..4617b241 100644
--- a/drivers/gpu/nvgpu/volt/volt_dev.c
+++ b/drivers/gpu/nvgpu/volt/volt_dev.c
@@ -29,7 +29,7 @@
29#define VOLT_DEV_PWM_VOLTAGE_STEPS_INVALID 0 29#define VOLT_DEV_PWM_VOLTAGE_STEPS_INVALID 0
30#define VOLT_DEV_PWM_VOLTAGE_STEPS_DEFAULT 1 30#define VOLT_DEV_PWM_VOLTAGE_STEPS_DEFAULT 1
31 31
32u32 volt_device_pmu_data_init_super(struct gk20a *g, 32static u32 volt_device_pmu_data_init_super(struct gk20a *g,
33 struct boardobj *pboard_obj, struct nv_pmu_boardobj *ppmudata) 33 struct boardobj *pboard_obj, struct nv_pmu_boardobj *ppmudata)
34{ 34{
35 u32 status; 35 u32 status;
@@ -73,7 +73,7 @@ static u32 volt_device_pmu_data_init_pwm(struct gk20a *g,
73 return status; 73 return status;
74} 74}
75 75
76u32 construct_volt_device(struct gk20a *g, 76static u32 construct_volt_device(struct gk20a *g,
77 struct boardobj **ppboardobj, u16 size, void *pargs) 77 struct boardobj **ppboardobj, u16 size, void *pargs)
78{ 78{
79 struct voltage_device *ptmp_dev = (struct voltage_device *)pargs; 79 struct voltage_device *ptmp_dev = (struct voltage_device *)pargs;
@@ -101,7 +101,8 @@ u32 construct_volt_device(struct gk20a *g,
101 return status; 101 return status;
102} 102}
103 103
104u32 construct_pwm_volt_device(struct gk20a *g, struct boardobj **ppboardobj, 104static u32 construct_pwm_volt_device(struct gk20a *g,
105 struct boardobj **ppboardobj,
105 u16 size, void *pargs) 106 u16 size, void *pargs)
106{ 107{
107 struct boardobj *pboard_obj = NULL; 108 struct boardobj *pboard_obj = NULL;
@@ -129,7 +130,8 @@ u32 construct_pwm_volt_device(struct gk20a *g, struct boardobj **ppboardobj,
129} 130}
130 131
131 132
132struct voltage_device_entry *volt_dev_construct_dev_entry_pwm(struct gk20a *g, 133static struct voltage_device_entry *volt_dev_construct_dev_entry_pwm(
134 struct gk20a *g,
133 u32 voltage_uv, void *pargs) 135 u32 voltage_uv, void *pargs)
134{ 136{
135 struct voltage_device_pwm_entry *pentry = NULL; 137 struct voltage_device_pwm_entry *pentry = NULL;
@@ -164,7 +166,7 @@ static u8 volt_dev_operation_type_convert(u8 vbios_type)
164 return CTRL_VOLT_DEVICE_OPERATION_TYPE_INVALID; 166 return CTRL_VOLT_DEVICE_OPERATION_TYPE_INVALID;
165} 167}
166 168
167struct voltage_device *volt_volt_device_construct(struct gk20a *g, 169static struct voltage_device *volt_volt_device_construct(struct gk20a *g,
168 void *pargs) 170 void *pargs)
169{ 171{
170 struct boardobj *pboard_obj = NULL; 172 struct boardobj *pboard_obj = NULL;
@@ -436,7 +438,8 @@ static int volt_device_volt_cmp(const void *a, const void *b)
436 return (int)a_entry->voltage_uv - (int)b_entry->voltage_uv; 438 return (int)a_entry->voltage_uv - (int)b_entry->voltage_uv;
437} 439}
438 440
439u32 volt_device_state_init(struct gk20a *g, struct voltage_device *pvolt_dev) 441static u32 volt_device_state_init(struct gk20a *g,
442 struct voltage_device *pvolt_dev)
440{ 443{
441 u32 status = 0; 444 u32 status = 0;
442 struct voltage_rail *pRail = NULL; 445 struct voltage_rail *pRail = NULL;