[PATCH 0/8] Add helper macro for pnp_register_driver boilerplate
From: Peter Huewe
Date: Mon Mar 16 2015 - 16:41:37 EST
This patchset introduces the module_pnp_driver macro which is a
convenience macro for PNP driver modules similar to module_pci_driver
and convert the affected drivers to the new helper macro.
It is intended to be used by drivers which init/exit section does nothing
but register/unregister the PNP driver. By using this macro it is
possible to eliminate a few lines of boilerplate code per PNP driver.
If easier you can pull directly from my tree:
The following changes since commit 06e5801b8cb3fc057d88cb4dc03c0b64b2744cda:
Linux 4.0-rc4 (2015-03-15 17:38:20 -0700)
are available in the git repository at:
https://github.com/PeterHuewe/linux-tpmdd.git module_pnp_driver
for you to fetch changes up to 5bf9cf2fdc9f22c7caa1c17a7eb2e17aab099b51:
pnp: tty/serial/8250/8250_fintek: Use module_pnp_driver to register driver (2015-03-16 21:40:05 +0100)
----------------------------------------------------------------
Peter Huewe (8):
pnp: Add helper macro for pnp_register_driver boilerplate
pnp: tpm/tpm_infineon: Use module_pnp_driver to register driver
pnp: ata/pata_isapnp: Use module_pnp_driver to register driver
pnp: ide/ide-pnp: Use module_pnp_driver to register driver
pnp: media/rc: Use module_pnp_driver to register driver
pnp: net/sb1000: Use module_pnp_driver to register driver
pnp: platform/x86/apple-gmux: Use module_pnp_driver to register driver
pnp: tty/serial/8250/8250_fintek: Use module_pnp_driver to register
driver
drivers/ata/pata_isapnp.c | 14 +-------------
drivers/char/tpm/tpm_infineon.c | 13 +------------
drivers/ide/ide-pnp.c | 14 +-------------
drivers/media/rc/ene_ir.c | 13 +------------
drivers/media/rc/fintek-cir.c | 13 +------------
drivers/media/rc/ite-cir.c | 13 +------------
drivers/media/rc/nuvoton-cir.c | 13 +------------
drivers/net/sb1000.c | 15 +--------------
drivers/platform/x86/apple-gmux.c | 14 +-------------
drivers/tty/serial/8250/8250_fintek.c | 13 +------------
include/linux/pnp.h | 12 ++++++++++++
11 files changed, 22 insertions(+), 125 deletions(-)
--
2.0.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/