summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/therm/thrmpmu.h
diff options
context:
space:
mode:
authorsmadhavan <smadhavan@nvidia.com>2018-09-14 02:28:41 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-25 00:17:42 -0400
commit3c3f80a687ae95c36341d9bf1753f63dfc4a06af (patch)
tree21f0c537bb7f417756e2c7feca17bdbcd0060702 /drivers/gpu/nvgpu/therm/thrmpmu.h
parent75e59e40045c6fbf93c5b828d8a12ba84b573585 (diff)
gpu: nvgpu: MISRA Rule 21.2 header guard fixes
MISRA rule 21.2 doesn't allow the use of macro names which start with an underscore. These leading underscores are to be removed from the macro names. This patch will fix such violations in nvgpu by renaming them to follow the convention,'NVGPU_PARENT-DIR_HEADER-NAME' when there is no keyword repetition between file name and directory or 'NVGPU_HEADER-NAME' when there is repetition. JIRA NVGPU-1028 Change-Id: I8a473c6c1a864f3893920d8e06e305095e523d2a Signed-off-by: smadhavan <smadhavan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1809082 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-by: Adeel Raza <araza@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/therm/thrmpmu.h')
-rw-r--r--drivers/gpu/nvgpu/therm/thrmpmu.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/therm/thrmpmu.h b/drivers/gpu/nvgpu/therm/thrmpmu.h
index 1341a055..42d5caae 100644
--- a/drivers/gpu/nvgpu/therm/thrmpmu.h
+++ b/drivers/gpu/nvgpu/therm/thrmpmu.h
@@ -21,11 +21,11 @@
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE. 22 * DEALINGS IN THE SOFTWARE.
23 */ 23 */
24#ifndef _THRMPMU_H_ 24#ifndef NVGPU_THERM_THRMPMU_H
25#define _THRMPMU_H_ 25#define NVGPU_THERM_THRMPMU_H
26 26
27int therm_send_pmgr_tables_to_pmu(struct gk20a *g); 27int therm_send_pmgr_tables_to_pmu(struct gk20a *g);
28 28
29u32 therm_configure_therm_alert(struct gk20a *g); 29u32 therm_configure_therm_alert(struct gk20a *g);
30 30
31#endif 31#endif /* NVGPU_THERM_THRMPMU_H */