[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1468434589-18610-1-git-send-email-fabf@skynet.be>
Date: Wed, 13 Jul 2016 20:29:41 +0200
From: Fabian Frederick <fabf@...net.be>
To: Samuel Ortiz <samuel@...tiz.org>
Cc: linux-kernel@...r.kernel.org, irda-users@...ts.sourceforge.net,
davem@...emloft.net, fabf@...net.be
Subject: [PATCH 0/8 net-next] irda: use module_driver in a new helper
Currently a lot of irda drivers use generic init/exit functions.
This small patchset adds a module_sirdev_driver() macro
calling module_driver() which implicitely generates init/exit
functions returning register/unregister().
This results in a lot of code removal.
(See include/linux/device.h/module_driver() for further details).
Note: compiled but untested.
Fabian Frederick (8):
irda: sir-dev: add module_sirdev_driver() helper
irda: actl200l-sir: use module_sirdev_driver() helper
irda: mcp2120-sir: use module_sirdev_driver() helper
irda: esi-sir: use module_sirdev_driver() helper
irda: girbil-sir: use module_sirdev_driver() helper
irda: old_belkin-sir: use module_sirdev_driver() helper
irda: litelink-sir: use module_sirdev_driver() helper
irda: ma600-sir: use module_sirdev_driver() helper
drivers/net/irda/act200l-sir.c | 15 ++-------------
drivers/net/irda/esi-sir.c | 16 ++--------------
drivers/net/irda/girbil-sir.c | 15 ++-------------
drivers/net/irda/litelink-sir.c | 28 ++--------------------------
drivers/net/irda/ma600-sir.c | 17 ++---------------
drivers/net/irda/mcp2120-sir.c | 15 ++-------------
drivers/net/irda/old_belkin-sir.c | 15 ++-------------
drivers/net/irda/sir-dev.h | 7 +++++++
8 files changed, 21 insertions(+), 107 deletions(-)
--
2.8.1
Powered by blists - more mailing lists