pinctrl: cy8c95x0: Simplify probe()
authorBiju Das <biju.das.jz@bp.renesas.com>
Sat, 2 Sep 2023 08:22:25 +0000 (09:22 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 Sep 2023 07:56:54 +0000 (09:56 +0200)
commit71567fbd1d33ecda0d75463397c9f3c76065dbbd
tree1893ca4cf2af4ff4708d95623277583703b99528
parent68a2f05fec4939922aef6710d55c14398a5825f3
pinctrl: cy8c95x0: Simplify probe()

Simpilfy probe() by replacing device_get_match_data() and ID lookup for
retrieving match data by i2c_get_match_data().

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230902082225.8777-1-biju.das.jz@bp.renesas.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-cy8c95x0.c