mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
video: tegra: host: nvdla: Fix MISRA 10.3 violation
The constants defined in dla_t19x_fw_version.h have UL suffix which translates to 64 bit unsigned integer on 64 bit architectures and 32 bit unsigned integers on 32 bit architectures such as falcon. To be MISRA rule 10.3 compliant on both, use explicit typecast to uint32_t which should work across both. This change does not fix any violations in here but reflects an update to this file that helps fix 10.3 violation in QNX KMD. Change-Id: I18102f037f15568954dfe47467e20058308b0405 Signed-off-by: Anup Mahindre <amahindre@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2367282 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Shridhar Rasal <srasal@nvidia.com> Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
68df82f0f7
commit
4827ba8442
@@ -17,9 +17,9 @@
|
||||
#ifndef DLA_T19X_FW_VERSION_H
|
||||
#define DLA_T19X_FW_VERSION_H
|
||||
|
||||
#define FIRMWARE_T19X_VERSION_MAJOR 0x1UL
|
||||
#define FIRMWARE_T19X_VERSION_MINOR 0x2UL
|
||||
#define FIRMWARE_T19X_VERSION_SUBMINOR 0x0UL
|
||||
#define FIRMWARE_T19X_VERSION_MAJOR ((uint32_t)0x1U)
|
||||
#define FIRMWARE_T19X_VERSION_MINOR ((uint32_t)0x2U)
|
||||
#define FIRMWARE_T19X_VERSION_SUBMINOR ((uint32_t)0x0U)
|
||||
|
||||
static inline uint32_t dla_t19x_fw_version(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user