resource: Add irqresource_disabled()
authorJohn Garry <john.garry@huawei.com>
Wed, 2 Dec 2020 10:36:54 +0000 (18:36 +0800)
committerMarc Zyngier <maz@kernel.org>
Fri, 11 Dec 2020 14:47:50 +0000 (14:47 +0000)
commit9806731db684a475ade1e95d166089b9edbd9da3
tree06bc2e0d381ab8ab36c50a7afafbf915b083846f
parent1d3aec89286254487df7641c30f1b14ad1d127a5
resource: Add irqresource_disabled()

Add a common function to set the fields for a irq resource to disabled,
which mimics what is done in acpi_dev_irqresource_disabled(), with a view
to replace that function.

Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/1606905417-183214-3-git-send-email-john.garry@huawei.com
include/linux/ioport.h