Skip to content

pinctrl: bcm/samsung/tegra: make bool code non-modular

Paul Gortmaker linux-gpio linux-samsung-soc linux-tegra lkml 1 version Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 15 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3pinctrl: samsung: clean up modular vs. non-modular distinctionsdrivers/pinctrl/samsung/pinctrl-exynos.c drivers/pinctrl/samsung/pinctrl-exynos5440.c drivers/pinctrl/samsung/pinctrl-s3c24xx.c +2 more+6 -273 replies
2/3pinctrl: tegra: clean up modular vs. non-modular distinctionsdrivers/pinctrl/tegra/pinctrl-tegra.c drivers/pinctrl/tegra/pinctrl-tegra114.c drivers/pinctrl/tegra/pinctrl-tegra124.c +3 more+18 -361 reply
3/3pinctrl: bcm: clean up modular vs. non-modular distinctionsdrivers/pinctrl/bcm/pinctrl-bcm281xx.c drivers/pinctrl/bcm/pinctrl-bcm2835.c drivers/pinctrl/bcm/pinctrl-cygnus-mux.c+16 -3110 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchSylwester NawrockiStefan Wahren
1/3A-b
2/3
3/3T-b

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

Read the v1 thread

Cover letter [PATCH 0/3] pinctrl: bcm/samsung/tegra: make bool code non-modular

This is the last of the pinctrl cleanups I have in my queue. So hopefully once these are in and any current but out-of-tree drivers are submitted, there won't be any more examples of non-modular code using modular infrastructure for people to inadvertently copy off of.

Nothing really new here -- if the Kconfig and/or the Makefile does not allow building the code as modular, then we don't need to be using module_xyz() functions and/or MODULE_XYZ macros.

Here we audit and remove such instances in three subdirectories of the pinctrl subsystem: bcm, samsung, and tegra, which allows us to have a positive net removal of unused code as per the diffstat.

Rather than do one commit per driver, we take advantage of the fact that the drivers are grouped already and bundle the changes per family, since the changes are not really deeply technical.

Build tested for allmodconfig on linux-next for arm, arm64; also explicitly compiled each file for both arch to ensure nobody got missed on the allmodconfig. (there are missing renesas_sdhi syms in today's linux-next arm but that is not caused by these changes.)

Linus - thanks for your patience in merging all these to date.

Paul.

---

Cc Alexandre Courbot <[email protected]>
Cc Ashwini Ghuge <[email protected]>
Cc Eric Anholt <[email protected]>
Cc Florian Fainelli <[email protected]>
Cc Jon Mason <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Pritesh Raithatha <[email protected]>
Cc Ray Jui <[email protected]>
Cc Scott Branden <[email protected]>
Cc Sherman Yin <[email protected]>
Cc Stefan Wahren <[email protected]>
Cc Stephen Warren <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Thomas Abraham <[email protected]>
Cc Tomasz Figa <[email protected]>

Paul Gortmaker (3):
pinctrl: samsung: clean up modular vs. non-modular distinctions
pinctrl: tegra: clean up modular vs. non-modular distinctions
pinctrl: bcm: clean up modular vs. non-modular distinctions

 drivers/pinctrl/bcm/pinctrl-bcm281xx.c       | 16 ++++++++--------
 drivers/pinctrl/bcm/pinctrl-bcm2835.c        | 20 +++-----------------
 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c     | 11 +++++------
 drivers/pinctrl/samsung/pinctrl-exynos.c     |  1 -
 drivers/pinctrl/samsung/pinctrl-exynos5440.c | 15 +++------------
 drivers/pinctrl/samsung/pinctrl-s3c24xx.c    |  2 +-
 drivers/pinctrl/samsung/pinctrl-s3c64xx.c    |  2 +-
 drivers/pinctrl/samsung/pinctrl-samsung.c    | 13 +------------
 drivers/pinctrl/tegra/pinctrl-tegra.c        |  1 -
 drivers/pinctrl/tegra/pinctrl-tegra114.c     | 11 ++++-------
 drivers/pinctrl/tegra/pinctrl-tegra124.c     | 11 ++++-------
 drivers/pinctrl/tegra/pinctrl-tegra20.c      | 11 ++++-------
 drivers/pinctrl/tegra/pinctrl-tegra210.c     |  9 ++-------
 drivers/pinctrl/tegra/pinctrl-tegra30.c      | 11 ++++-------
 14 files changed, 40 insertions(+), 94 deletions(-)
Signature · 1 line
2.11.0