diff options
author | Biju Das <biju.das.jz@bp.renesas.com> | 2023-07-17 15:40:58 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2023-07-28 00:07:50 +0300 |
commit | 68c624f860b30408afde81a91b4c9df3e915ed85 (patch) | |
tree | bb56836540431a39b1b4095659524f733c41fd9e /drivers/rtc/rtc-m48t86.c | |
parent | b7f73b6e921b457a222e86cf53fe3950c6b5aed5 (diff) | |
download | linux-68c624f860b30408afde81a91b4c9df3e915ed85.tar.xz |
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/rtc-m48t86.c')
0 files changed, 0 insertions, 0 deletions