]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: fsl: csu: Reduce size of ns_dev
authorSean Anderson <sean.anderson@seco.com>
Mon, 17 Oct 2022 15:45:12 +0000 (11:45 -0400)
committerPeng Fan <peng.fan@nxp.com>
Tue, 18 Oct 2022 01:32:53 +0000 (09:32 +0800)
None of the values in this struct are larger than 256, so we can reduce
the members to u8s. This saves around 1K.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
include/fsl_csu.h

index 0e59ac3c324da84caea56bc96ccfdabf8fe52159..40c296879791cf4636f5f3025a5c79af476390ee 100644 (file)
@@ -24,8 +24,8 @@ enum csu_cslx_access {
 };
 
 struct csu_ns_dev {
-       unsigned long ind;
-       uint32_t val;
+       u8 ind;
+       u8 val;
 };
 
 void enable_layerscape_ns_access(void);