]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfa4dc178fed09be51a3a153d1221847470a4343d
treeb213d7c68e03cb3cfa5daa60e13431093236806f
parent708cc289232807210f74a0c90487ecd57c37a4e2
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