pinctrl: sh-pfc: Reduce kernel size for narrow VIN channels
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 16 Oct 2018 07:46:12 +0000 (09:46 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 6 Nov 2018 08:20:26 +0000 (09:20 +0100)
commit50f3f2d73e3426ba5aac0fe62098870579a0b357
tree9a5f5bff94377bb10e60bf52b91d73a2be059a1a
parent9f8dc8e2b16118ea125c0d89a602b6bc36f128e4
pinctrl: sh-pfc: Reduce kernel size for narrow VIN channels

Some VIN channels support less than 24 lanes.  As union vin_data always
consumes space for 24 lanes, this wastes memory.

Hence introduce new smaller unions vin_data12 and vin_data16, to
accommodate VIN channels with only 12 or 16 lanes.

This reduces the static pin controller driver size by 320 bytes for
R-Car V2H, and by 96 bytes for R-Car E2.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
drivers/pinctrl/sh-pfc/pfc-r8a7792.c
drivers/pinctrl/sh-pfc/pfc-r8a7794.c
drivers/pinctrl/sh-pfc/sh_pfc.h