isa: Introduce the module_isa_driver_with_irq helper macro
authorWilliam Breathitt Gray <william.gray@linaro.org>
Thu, 18 Aug 2022 16:28:10 +0000 (12:28 -0400)
committerBartosz Golaszewski <brgl@bgdev.pl>
Thu, 15 Sep 2022 08:28:18 +0000 (10:28 +0200)
commit85ebe0afd3f8377a9b506321314f4b8344caa8ec
treeb213d7c68e03cb3cfa5daa60e13431093236806f
parent13c5d4ce806026a3d06efa2fcc1e5a0cb875df29
isa: Introduce the module_isa_driver_with_irq helper macro

Several ISA drivers feature IRQ support that can configured via an "irq"
array module parameter. This array typically matches directly with the
respective "base" array module parameter. To reduce code repetition, a
module_isa_driver_with_irq helper macro is introduced to provide a check
ensuring that the number of "irq" passed to the module matches with the
respective number of "base".

Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
Acked-by: William Breathitt Gray <william.gray@linaro.org>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
include/linux/isa.h