OSDN Git Service

rtc: isl1208: Simplify probe()
authorBiju Das <biju.das.jz@bp.renesas.com>
Mon, 10 Jul 2023 11:47:47 +0000 (12:47 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 27 Jul 2023 21:06:28 +0000 (23:06 +0200)
commitb7f73b6e921b457a222e86cf53fe3950c6b5aed5
treebd68300f21db4dc98fdeb88cc8461ab8c08e6f44
parent650915ecd8f8cbb58e1ef55430f9e15ae03fd7d8
rtc: isl1208: Simplify probe()

Simplify the probe() by replacing of_device_get_match_data() and
i2c_match_id() by i2c_get_match_data() as we have similar I2C
and DT-based matching table.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230710114747.106496-1-biju.das.jz@bp.renesas.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-isl1208.c