i2c: Add i2c_get_match_data()
authorBiju Das <biju.das.jz@bp.renesas.com>
Wed, 7 Jun 2023 16:57:38 +0000 (17:57 +0100)
committerWolfram Sang <wsa@kernel.org>
Fri, 9 Jun 2023 15:30:47 +0000 (17:30 +0200)
commit564d73c4d9201526bd976b9379d2aaf1a7133e84
tree13dd5b78191f18f1848b952b8c59823be7be3ecf
parentedaac7d9fff62718d0edaa7ae99fd0be36450f32
i2c: Add i2c_get_match_data()

Add i2c_get_match_data() to get match data for I2C, ACPI and
DT-based matching, so that we can optimize the driver code.

Suggested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
[wsa: simplified var initialization]
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/i2c-core-base.c
include/linux/i2c.h