diff options
author | Biju Das <biju.das.jz@bp.renesas.com> | 2023-07-17 14:40:58 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2023-07-27 23:07:50 +0200 |
commit | 68c624f860b30408afde81a91b4c9df3e915ed85 (patch) | |
tree | bb56836540431a39b1b4095659524f733c41fd9e /drivers/rtc/lib_test.c | |
parent | rtc: isl1208: Simplify probe() (diff) | |
download | linux-68c624f860b30408afde81a91b4c9df3e915ed85.tar.xz linux-68c624f860b30408afde81a91b4c9df3e915ed85.zip |
rtc: pcf85063: Simplify probe()
The pcf85063_ids[].driver_data could store a pointer to the config,
like for DT-based matching, making I2C and DT-based matching
more similar.
After that, we can 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/20230717124059.196244-2-biju.das.jz@bp.renesas.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/lib_test.c')
0 files changed, 0 insertions, 0 deletions