lib: utils/i2c: Use fdt_driver for initialization

The i2c driver subsystem does not need any extra data, so it can use
`struct fdt_driver` directly. It always initializes the driver for a
specific DT node.

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Samuel Holland authored and Anup Patel committed 2024-11-28 17:38:05 +05:30
1 parent bef8f9b806
commit 333133edaa
5 files changed
+7 -37

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ static const struct fdt_match fdt_dw_i2c_match[] = {
{ },
};
struct fdt_i2c_adapter fdt_i2c_adapter_dw = {
const struct fdt_driver fdt_i2c_adapter_dw = {
.match_table = fdt_dw_i2c_match,
.init = fdt_dw_i2c_init,
};