]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: shmobile: R-Car: Shrink rcar_sysc_ch size
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 4 Jun 2015 18:22:28 +0000 (20:22 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 6 Jul 2015 00:35:17 +0000 (09:35 +0900)
Shrink the individual fields in struct rcar_sysc_ch, as unsigned long or
int is overkill:
  - chan_offs contains a register offset relative to a base value
    (< 512),
  - chan_bit and isr_bit contain bit indices (0-31).

This reduces the size of each instance from 3 (4 on 64-bit) 32-bit words
to 1 32-bit word.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/pm-rcar.h

index ef3a1ef628f18b006a20ddd49da24191633485ca..06ebf00a6a5a78b82f396b28f5a15734b75b1abc 100644 (file)
@@ -2,9 +2,9 @@
 #define PM_RCAR_H
 
 struct rcar_sysc_ch {
-       unsigned long chan_offs;
-       unsigned int chan_bit;
-       unsigned int isr_bit;
+       u16 chan_offs;
+       u8 chan_bit;
+       u8 isr_bit;
 };
 
 int rcar_sysc_power_down(struct rcar_sysc_ch *sysc_ch);