]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:10:49 +0000 (15:10 +0200)
commit41fe2205aae6625a2c0a5dcc8bde082bb4b1ac3c
tree39c41b534a199e7f9c632478925d0777ced3ee42
parent302bb15d87ad3056348c1e40dcc7292a23747040
i2c: Add i2c_get_match_data()

[ Upstream commit 564d73c4d9201526bd976b9379d2aaf1a7133e84 ]

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>
Stable-dep-of: 119abf7d1815 ("hwmon: (max16065) Fix alarm attributes")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/i2c-core-base.c
include/linux/i2c.h