Skip to content

mfd: make da90xx drivers explicitly non-modular

Paul Gortmaker lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mfd: da903x: Make it explicitly non-modulardrivers/mfd/da903x.c+3 -237 replies
2/4mfd: da9052-*: Make it explicitly non-modulardrivers/mfd/da9052-core.c drivers/mfd/da9052-i2c.c drivers/mfd/da9052-irq.c +2 more+4 -530 replies
3/4mfd: da9055-core: make it explicitly non-modulardrivers/mfd/da9055-core.c+2 -111 reply
4/4mfd: da9055-i2c: Make it explicitly non-modulardrivers/mfd/da9055-i2c.c+2 -220 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] mfd: make da90xx drivers explicitly non-modular

At the risk of repeating the same boiler plate, in this cleanup we continue to make driver code consistent with the Makefiles/Kconfigs that control them.

This means not using modular functions/macros for drivers that can never be built as a module. Some of the main downfalls this leads to are:

(1) it is easy to accidentally write unused module_exit and remove code
(2) it can be misleading when reading the source, thinking it can be modular when the Makefile and/or Kconfig prohibit it
(3) it requires the include of the module.h header file which in turn includes nearly everything else, thus adding to CPP overhead.
(4) it gets copied/replicated into other drivers and thus spreads.

As always, the option exists for someone with the hardware and the desire to extend the functionality to make any given driver tristate. But given the number of these tree wide and the fact that I can't test that new extended functionality in all cases, I just make the code consistent with existing Kconfig/Makefile settings that currently restrict them to "bool".

Build tested on linux-next for arm, arm64 and x86-64 to ensure no typos or similar issues crept in. The diffstat summary speaks for itself.

Paul Gortmaker (4):
mfd: da903x: Make it explicitly non-modular
mfd: da9052-*: Make it explicitly non-modular
mfd: da9055-core: make it explicitly non-modular
mfd: da9055-i2c: Make it explicitly non-modular

 drivers/mfd/da903x.c              | 26 +++-----------------------
 drivers/mfd/da9052-core.c         | 11 -----------
 drivers/mfd/da9052-i2c.c          | 22 ++--------------------
 drivers/mfd/da9052-irq.c          |  1 -
 drivers/mfd/da9052-spi.c          | 22 ++--------------------
 drivers/mfd/da9055-core.c         | 13 ++-----------
 drivers/mfd/da9055-i2c.c          | 24 ++----------------------
 include/linux/mfd/da9052/da9052.h |  1 -
 8 files changed, 11 insertions(+), 109 deletions(-)
Signature · 1 line
2.11.0