Skip to content

pinctrl: pinmux: Embed and reuse struct

Andy Shevchenko imx linux-arm-kernel linux-gpio linux-mediatek linux-mips lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest11 patches 1 replyIn review
  2. v211 patches 4 repliesSuperseded
  3. v111 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11pinctrl: berlin: Make use of struct pinfunctiondrivers/pinctrl/berlin/berlin.c drivers/pinctrl/berlin/berlin.h+9 -180 replies
2/11pinctrl: equilibrium: Make use of struct pinfunctiondrivers/pinctrl/pinctrl-equilibrium.c drivers/pinctrl/pinctrl-equilibrium.h+13 -230 replies
3/11pinctrl: ingenic: Provide a helper macro INGENIC_PIN_FUNCTION()drivers/pinctrl/pinctrl-ingenic.c+352 -3450 replies
4/11pinctrl: mediatek: moore: Provide a helper macro PINCTRL_PIN_FUNCTION()drivers/pinctrl/mediatek/pinctrl-moore.h drivers/pinctrl/mediatek/pinctrl-mt7622.c drivers/pinctrl/mediatek/pinctrl-mt7623.c +3 more+84 -760 replies
5/11pinctrl: pinmux: Add a convenient define PINCTRL_FUNCTION_DESC()drivers/pinctrl/core.h drivers/pinctrl/pinmux.c drivers/pinctrl/pinmux.h+14 -80 replies
6/11pinctrl: pinmux: Embed struct pinfunction into struct function_descdrivers/pinctrl/pinmux.c drivers/pinctrl/pinmux.h+9 -60 replies
7/11pinctrl: imx: Convert to use func memberdrivers/pinctrl/freescale/pinctrl-imx.c+7 -70 replies
8/11pinctrl: ingenic: Convert to use func memberdrivers/pinctrl/pinctrl-ingenic.c+7 -90 replies
9/11pinctrl: keembay: Convert to use func memberdrivers/pinctrl/pinctrl-keembay.c+11 -110 replies
10/11pinctrl: mediatek: moore: Convert to use func memberdrivers/pinctrl/mediatek/pinctrl-moore.c drivers/pinctrl/mediatek/pinctrl-moore.h+6 -80 replies
11/11pinctrl: pinmux: Remove unused members from struct function_descdrivers/pinctrl/pinmux.h+0 -90 replies

Reviews trailers per patch

2 of 11 patches have a Reviewed-by or Acked-by.

PatchAngeloGioacchino Del Regno
1/11
2/11
3/11
4/11R-b
5/11
6/11
7/11
8/11
9/11
10/11R-b
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 00/11] pinctrl: pinmux: Embed and reuse struct

As promised to Linus W. there is a series that converts struct function_desc to use struct pinfunction. With this it both struct group_desc and struct function_desc will rely on the generic data types (struct pingroup and struct pinfunction respectively). I haven't compiled everything, some builds might fail. Anyway, comments, reviews, testing are all appreciated.

In v3:
- added 'moore' to the mediatek patches summary (AngeloGioacchino)
- added tags (AngeloGioacchino)
- fixed build error in IMX driver (LKP)

In v2:
- fixed compilation problems found so far by LKP

Andy Shevchenko (11):
pinctrl: berlin: Make use of struct pinfunction
pinctrl: equilibrium: Make use of struct pinfunction
pinctrl: ingenic: Provide a helper macro INGENIC_PIN_FUNCTION()
pinctrl: mediatek: moore: Provide a helper macro
PINCTRL_PIN_FUNCTION()
pinctrl: pinmux: Add a convenient define PINCTRL_FUNCTION_DESC()
pinctrl: pinmux: Embed struct pinfunction into struct function_desc
pinctrl: imx: Convert to use func member
pinctrl: ingenic: Convert to use func member
pinctrl: keembay: Convert to use func member
pinctrl: mediatek: moore: Convert to use func member
pinctrl: pinmux: Remove unused members from struct function_desc

 drivers/pinctrl/berlin/berlin.c           |  21 +-
 drivers/pinctrl/berlin/berlin.h           |   6 -
 drivers/pinctrl/core.h                    |   2 +-
 drivers/pinctrl/freescale/pinctrl-imx.c   |  14 +-
 drivers/pinctrl/mediatek/pinctrl-moore.c  |  10 +-
 drivers/pinctrl/mediatek/pinctrl-moore.h  |   6 +
 drivers/pinctrl/mediatek/pinctrl-mt7622.c |  32 +-
 drivers/pinctrl/mediatek/pinctrl-mt7623.c |  42 +-
 drivers/pinctrl/mediatek/pinctrl-mt7629.c |  20 +-
 drivers/pinctrl/mediatek/pinctrl-mt7981.c |  34 +-
 drivers/pinctrl/mediatek/pinctrl-mt7986.c |  24 +-
 drivers/pinctrl/pinctrl-equilibrium.c     |  24 +-
 drivers/pinctrl/pinctrl-equilibrium.h     |  12 -
 drivers/pinctrl/pinctrl-ingenic.c         | 707 +++++++++++-----------
 drivers/pinctrl/pinctrl-keembay.c         |  22 +-
 drivers/pinctrl/pinmux.c                  |  19 +-
 drivers/pinctrl/pinmux.h                  |  19 +-
 17 files changed, 503 insertions(+), 511 deletions(-)
Signature · 1 line
2.45.1