diff options
Diffstat (limited to 'drivers/gpu/nvgpu/pmgr/pwrmonitor.c')
-rw-r--r-- | drivers/gpu/nvgpu/pmgr/pwrmonitor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/pmgr/pwrmonitor.c b/drivers/gpu/nvgpu/pmgr/pwrmonitor.c index 28074afb..710ae85b 100644 --- a/drivers/gpu/nvgpu/pmgr/pwrmonitor.c +++ b/drivers/gpu/nvgpu/pmgr/pwrmonitor.c | |||
@@ -40,7 +40,7 @@ static int _pwr_channel_pmudata_instget(struct gk20a *g, | |||
40 | 40 | ||
41 | /*check whether pmuboardobjgrp has a valid boardobj in index*/ | 41 | /*check whether pmuboardobjgrp has a valid boardobj in index*/ |
42 | if (((u32)BIT(idx) & | 42 | if (((u32)BIT(idx) & |
43 | ppmgrchannel->hdr.data.super.obj_mask.super.data[0]) == 0) { | 43 | ppmgrchannel->hdr.data.super.obj_mask.super.data[0]) == 0U) { |
44 | return -EINVAL; | 44 | return -EINVAL; |
45 | } | 45 | } |
46 | 46 | ||
@@ -67,7 +67,7 @@ static int _pwr_channel_rels_pmudata_instget(struct gk20a *g, | |||
67 | 67 | ||
68 | /*check whether pmuboardobjgrp has a valid boardobj in index*/ | 68 | /*check whether pmuboardobjgrp has a valid boardobj in index*/ |
69 | if (((u32)BIT(idx) & | 69 | if (((u32)BIT(idx) & |
70 | ppmgrchrels->hdr.data.super.obj_mask.super.data[0]) == 0) { | 70 | ppmgrchrels->hdr.data.super.obj_mask.super.data[0]) == 0U) { |
71 | return -EINVAL; | 71 | return -EINVAL; |
72 | } | 72 | } |
73 | 73 | ||
@@ -241,7 +241,7 @@ static int devinit_get_pwr_topology_table(struct gk20a *g, | |||
241 | 241 | ||
242 | memcpy(&pwr_topology_table_entry.param0, | 242 | memcpy(&pwr_topology_table_entry.param0, |
243 | (curr_pwr_topology_table_ptr + 2), | 243 | (curr_pwr_topology_table_ptr + 2), |
244 | (VBIOS_POWER_TOPOLOGY_2X_ENTRY_SIZE_16 - 2)); | 244 | (VBIOS_POWER_TOPOLOGY_2X_ENTRY_SIZE_16 - 2U)); |
245 | 245 | ||
246 | class_type = (u8)BIOS_GET_FIELD( | 246 | class_type = (u8)BIOS_GET_FIELD( |
247 | pwr_topology_table_entry.flags0, | 247 | pwr_topology_table_entry.flags0, |