]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hid: cp2112: Use irq_get_trigger_type() helper
authorJinjie Ruan <ruanjinjie@huawei.com>
Fri, 13 Sep 2024 07:46:32 +0000 (15:46 +0800)
committerBenjamin Tissoires <bentiss@kernel.org>
Fri, 13 Sep 2024 13:39:37 +0000 (15:39 +0200)
commite9a081c80cb377b84ead0ba46e8ec892184318bd
tree8daed2aa23661ddfcd0083161f6da6a87cdc11e6
parent6e4436539ae182dc86d57d13849862bcafaa4709
hid: cp2112: 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.

No functional changed.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://patch.msgid.link/20240913074632.3779321-1-ruanjinjie@huawei.com
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
drivers/hid/hid-cp2112.c