mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: use define macros for litter values
Instead of using enum type for litter values, use define macros. This will fix: 1. Resolve ambiguity associated with enum type size. 2. Litter values can be extended easily in future chips. JIRA GV11B-21 Change-Id: Idca5144ea3754820c67831a716bb0aaf2e375eb2 Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: http://git-master/r/1254854 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
d29afd2c9e
commit
fab87a29bb
@@ -51,8 +51,7 @@ static struct gpu_ops gk20a_ops = {
|
||||
},
|
||||
};
|
||||
|
||||
static int gk20a_get_litter_value(struct gk20a *g,
|
||||
enum nvgpu_litter_value value)
|
||||
static int gk20a_get_litter_value(struct gk20a *g, int value)
|
||||
{
|
||||
int ret = EINVAL;
|
||||
switch (value) {
|
||||
|
||||
Reference in New Issue
Block a user