soundwire: add module_sdw_driver helper macro
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tue, 11 Jun 2019 10:40:41 +0000 (11:40 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 1 Jul 2019 06:22:43 +0000 (11:52 +0530)
commit2aeac95d1a4cc85aae57ab842d5c3340df0f817f
treedd6449faa5e951461d0162919af7bdf092b1576b
parentbe1038846b8063c448baf5ddcdc2387241c4133e
soundwire: add module_sdw_driver helper macro

This Helper macro is for SoundWire drivers which do not do anything special in
module init/exit. This eliminates a lot of boilerplate. Each module may only
use this macro once, and calling it replaces module_init() and module_exit()

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
include/linux/soundwire/sdw_type.h