WSL2-Linux-Kernel/drivers/pinctrl/renesas
Geert Uytterhoeven 8019938a85 pinctrl: renesas: Optimize sh_pfc_pin_config
Shrink sh_pfc_pin_config from 8 to 2 bytes:
  - The mux_set flag can be removed, as a non-zero mark value means the
    same (zero = PINMUX_RESERVED is an invalid mark value),
  - The gpio_enabled flag needs only a single bit,
  - Mark values are small integers, and can easily fit in a 15-bit
    bitfield.

This saves 6 bytes per pin when allocating the sh_pfc_pinctrl.configs
array, i.e. it reduces run-time memory consumption by ca. 1.5 KiB.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20201028151637.1734130-5-geert+renesas@glider.be
2020-11-13 15:37:41 +01:00
..
Kconfig
Makefile
core.c
core.h
gpio.c pinctrl: renesas: Singular/plural grammar fixes 2020-11-13 15:37:41 +01:00
pfc-emev2.c
pfc-r8a73a4.c
pfc-r8a7740.c
pfc-r8a7778.c
pfc-r8a7779.c
pfc-r8a7790.c pinctrl: renesas: r8a7790: Optimize pinctrl image size for R8A7742 2020-11-13 15:37:41 +01:00
pfc-r8a7791.c pinctrl: renesas: r8a7791: Optimize pinctrl image size for R8A774[34] 2020-11-13 15:37:41 +01:00
pfc-r8a7792.c
pfc-r8a7794.c
pfc-r8a7796.c pinctrl: renesas: r8a7796: Optimize pinctrl image size for R8A774A1 2020-11-13 15:37:38 +01:00
pfc-r8a77470.c
pfc-r8a77950.c
pfc-r8a77951.c pinctrl: renesas: r8a77951: Optimize pinctrl image size for R8A774E1 2020-11-13 15:37:34 +01:00
pfc-r8a77965.c pinctrl: renesas: r8a77965: Optimize pinctrl image size for R8A774B1 2020-11-13 15:37:41 +01:00
pfc-r8a77970.c
pfc-r8a77980.c
pfc-r8a77990.c pinctrl: renesas: r8a77990: Optimize pinctrl image size for R8A774C0 2020-11-13 15:37:41 +01:00
pfc-r8a77995.c
pfc-sh73a0.c
pfc-sh7203.c
pfc-sh7264.c
pfc-sh7269.c
pfc-sh7720.c
pfc-sh7722.c
pfc-sh7723.c
pfc-sh7724.c
pfc-sh7734.c
pfc-sh7757.c
pfc-sh7785.c
pfc-sh7786.c
pfc-shx3.c
pinctrl-rza1.c
pinctrl-rza2.c
pinctrl-rzn1.c
pinctrl.c pinctrl: renesas: Optimize sh_pfc_pin_config 2020-11-13 15:37:41 +01:00
sh_pfc.h pinctrl: renesas: Reorder struct sh_pfc_pin to remove hole 2020-11-13 15:37:41 +01:00