Tegra186: PM: fix MISRA defects in plat_psci_handlers.c
authorAnthony Zhou <anzhou@nvidia.com>
Fri, 3 Mar 2017 08:23:08 +0000 (16:23 +0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 16 Jan 2019 18:19:27 +0000 (10:19 -0800)
commit214e8464acd27b41d5e81b94e42b7bf33a54fb40
treee94e6190c5bc5545cf5bbfc4e3c31ff6e334590e
parentd2dc0cf67928fa7a4738aad10f6931b4174a9ea0
Tegra186: PM: fix MISRA defects in plat_psci_handlers.c

Main fixes:

Added explicit casts (e.g. 0U) to integers in order for them to be
compatible with whatever operation they're used in [Rule 10.1]

convert object type to match the type of function parameters
[Rule 10.3]

Force operands of an operator to the same type category [Rule 10.4]

Fix implicit widening of composite assignment [Rule 10.6]

Change-Id: I5840a07f37beefc3326ac56d0b4a4701602bd8a8
Signed-off-by: Anthony Zhou <anzhou@nvidia.com>
plat/nvidia/tegra/include/tegra_private.h
plat/nvidia/tegra/soc/t186/plat_psci_handlers.c