OSDN Git Service

pinctrl: sx150x: drop of_match_ptr for ID table
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 12 Mar 2023 13:27:02 +0000 (14:27 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 13 Mar 2023 10:17:50 +0000 (11:17 +0100)
commit3f2d4560898bb7cf579fb78c39f7c77368560414
treeb83e9b1af36d3c99ff23b0e5849c0a12834ab7c4
parent713834cf2cd47cfdb79da523c8b243fca71615f5
pinctrl: sx150x: drop of_match_ptr for ID table

The driver will match mostly by DT table (even thought there is regular
ID table) so there is little benefit in of_match_ptr (this also allows
ACPI matching via PRP0001, even though it might not be relevant here).
This also fixes !CONFIG_OF error:

  drivers/pinctrl/pinctrl-sx150x.c:833:34: error: ‘sx150x_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230312132702.352832-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-sx150x.c