]> www.infradead.org Git - users/jedix/linux-maple.git/commit
regulator: max8973: Use irq_get_trigger_type() helper
authorJinjie Ruan <ruanjinjie@huawei.com>
Fri, 13 Sep 2024 01:35:03 +0000 (09:35 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 13 Sep 2024 13:57:07 +0000 (14:57 +0100)
commitff97b9c0df585d14c4c6b9c4cdcbeba43f7b885a
tree5bf807a9b558208e6bd1e8c5c94715f9e9a80517
parenta1d12410d9b1ecff87d39f80b0d1cec895012ffa
regulator: max8973: Use irq_get_trigger_type() helper

Use irq_get_trigger_type() to replace irq_get_irq_data() and then
irqd_get_trigger_type(), if the irq data is NULL it will return 0.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://patch.msgid.link/20240913013503.3754712-1-ruanjinjie@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max8973-regulator.c