siox: Add helper macro to simplify driver registration
authorEnrico Weigelt <info@metux.net>
Mon, 24 Jun 2019 05:40:33 +0000 (07:40 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 27 Jun 2019 14:56:51 +0000 (15:56 +0100)
commit8f3fd89593377d15df88ad26dcf48318d8c9896f
tree43265c5b2b9e0dd3b97d5761db3f206fdd7a4f35
parent0f5cb8cc27a266c81e6523b436479802e9aafc9e
siox: Add helper macro to simplify driver registration

Add more helper macros for trivial driver init cases, similar to the
already existing module_platform_driver() or module_i2c_driver().

This helps to reduce driver init boilerplate.

Signed-off-by: Enrico Weigelt <info@metux.net>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/linux/siox.h