]> git.baikalelectronics.ru Git - kernel.git/commit
irq/irq_sim: add irq_set_type() callback
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 18 Feb 2019 16:32:03 +0000 (17:32 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 19 Feb 2019 16:42:28 +0000 (17:42 +0100)
commit8250e11c3c623907f86c7ba7431cd3ebd0d5c685
tree9070e8197d26c5f4ec8dcc3e5ded5116199a2843
parent532a634fc9a48273ff1559e8ed951d9dd871950a
irq/irq_sim: add irq_set_type() callback

Implement the irq_set_type() callback and call irqd_set_trigger_type()
internally so that users interested in the configured trigger type can
later retrieve it using irqd_get_trigger_type(). We only support edge
trigger types.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
kernel/irq/irq_sim.c