提交 6fd2242e 编写于 作者: G Geert Uytterhoeven 提交者: Simon Horman

ARM: shmobile: R-Car: Shrink rcar_sysc_ch size

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: NGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: NSimon Horman <horms+renesas@verge.net.au>
上级 577d104d
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
#define PM_RCAR_H #define PM_RCAR_H
struct rcar_sysc_ch { struct rcar_sysc_ch {
unsigned long chan_offs; u16 chan_offs;
unsigned int chan_bit; u8 chan_bit;
unsigned int isr_bit; u8 isr_bit;
}; };
int rcar_sysc_power_down(struct rcar_sysc_ch *sysc_ch); int rcar_sysc_power_down(struct rcar_sysc_ch *sysc_ch);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册