summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/clk/clk_vin.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_vin.c')
-rw-r--r--drivers/gpu/nvgpu/clk/clk_vin.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_vin.c b/drivers/gpu/nvgpu/clk/clk_vin.c
index 59a74d6b..e0a4a5b6 100644
--- a/drivers/gpu/nvgpu/clk/clk_vin.c
+++ b/drivers/gpu/nvgpu/clk/clk_vin.c
@@ -80,10 +80,8 @@ u32 clk_avfs_get_vin_cal_fuse_v10(struct gk20a *g,
80 "err reading vin cal for id %x", pvindev->super.id); 80 "err reading vin cal for id %x", pvindev->super.id);
81 return status; 81 return status;
82 } 82 }
83 if (slope != 0 && intercept != 0) { 83 pvindev->data.vin_cal.cal_v10.slope = slope;
84 pvindev->data.vin_cal.cal_v10.slope = slope; 84 pvindev->data.vin_cal.cal_v10.intercept = intercept;
85 pvindev->data.vin_cal.cal_v10.intercept = intercept;
86 }
87 } 85 }
88 } 86 }
89 return status; 87 return status;
@@ -111,10 +109,8 @@ u32 clk_avfs_get_vin_cal_fuse_v20(struct gk20a *g,
111 "err reading vin cal for id %x", pvindev->super.id); 109 "err reading vin cal for id %x", pvindev->super.id);
112 return status; 110 return status;
113 } 111 }
114 if (gain != 0 && offset != 0) { 112 pvindev->data.vin_cal.cal_v20.gain = gain;
115 pvindev->data.vin_cal.cal_v20.gain = gain; 113 pvindev->data.vin_cal.cal_v20.offset = offset;
116 pvindev->data.vin_cal.cal_v20.offset = offset;
117 }
118 } 114 }
119 } 115 }
120 return status; 116 return status;