Skip to content
Commit 275d5fd1 authored by Bryan O'Donoghue's avatar Bryan O'Donoghue Committed by Chanwoo Choi
Browse files

extcon: qcom-spmi: Switch to platform_get_irq_byname_optional



Valid configurations for the extcon interrupt declarations are

- usb_id
- usb_vbus
- (usb_id | usb_vbus)

In the case of a standalone usb_id or usb_vbus failure to find one of the
interrupts shouldn't generate a warning message. A warning is already in
place if both IRQs are missing.

Switch to using platform_get_irq_byname_optional() in order to facilitate
this behaviour.

Suggested-by: default avatarMarijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: default avatarMarijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 2fc36298
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment