]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
misc: fuse: make type of tegra_get_chip_id() to consistent
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 9 Dec 2016 17:01:33 +0000 (22:31 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Sun, 11 Dec 2016 09:15:17 +0000 (01:15 -0800)
For some Tegra SOCs, the function tegra_get_chip_id() returns u8
and for some other it returns u32.

Make the return type to be consistent and should return u8 data type.

bug 200260692

Change-Id: I1a2204ed2b34f706543a7b9630546c7fcb16de5a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1268604
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shardar Mohammed <smohammed@nvidia.com>
Reviewed-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
drivers/misc/tegra-fuse/tegra_fuse.c
include/linux/tegra-fuse.h

index 1c0bd137f072adfa3b6bb6f15571ef1fbdb21320..9bcef915e71be67954223667c419786728dee14a 100644 (file)
@@ -448,7 +448,7 @@ u32 tegra_get_sku_id(void)
        return tegra_chip_sku_id;
 }
 
-u32 tegra_get_chip_id(void)
+u8 tegra_get_chip_id(void)
 {
        return tegra_chip_id;
 }
index 1526228ec62117333f38e2c8b278884a2f47b0e9..b09c37e58a043ba523ba3d99dd2b20919c54fc4a 100644 (file)
@@ -54,7 +54,7 @@ int tegra_fuse_readl(unsigned long offset, u32 *val);
 
 #if defined(CONFIG_TEGRA_FUSE)
 bool tegra_spare_fuse(int bit);
-u32 tegra_get_chip_id(void);
+u8 tegra_get_chip_id(void);
 int tegra_get_sku_override(void);
 u32 tegra_get_sku_id(void);
 #endif