提交 2651a052 编写于 作者: S Simon Glass 提交者: Heiko Schocher

i2c: Drop redundant platform data setting in drivers

The i2c uclass has a default setting for per_child_platdata_auto_alloc_size
so drivers do not need to set it. Remove this from drivers to avoid
confusion.
Signed-off-by: NSimon Glass <sjg@chromium.org>
Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
上级 28cd88ba
...@@ -72,6 +72,5 @@ U_BOOT_DRIVER(cros_ec_ldo) = { ...@@ -72,6 +72,5 @@ U_BOOT_DRIVER(cros_ec_ldo) = {
.name = "cros_ec_ldo_tunnel", .name = "cros_ec_ldo_tunnel",
.id = UCLASS_I2C, .id = UCLASS_I2C,
.of_match = cros_ec_i2c_ids, .of_match = cros_ec_i2c_ids,
.per_child_auto_alloc_size = sizeof(struct dm_i2c_chip),
.ops = &cros_ec_i2c_ops, .ops = &cros_ec_i2c_ops,
}; };
...@@ -36,6 +36,5 @@ U_BOOT_DRIVER(cros_ec_tunnel) = { ...@@ -36,6 +36,5 @@ U_BOOT_DRIVER(cros_ec_tunnel) = {
.name = "cros_ec_tunnel", .name = "cros_ec_tunnel",
.id = UCLASS_I2C, .id = UCLASS_I2C,
.of_match = cros_ec_i2c_ids, .of_match = cros_ec_i2c_ids,
.per_child_auto_alloc_size = sizeof(struct dm_i2c_chip),
.ops = &cros_ec_i2c_ops, .ops = &cros_ec_i2c_ops,
}; };
...@@ -69,7 +69,6 @@ U_BOOT_DRIVER(intel_i2c) = { ...@@ -69,7 +69,6 @@ U_BOOT_DRIVER(intel_i2c) = {
.name = "i2c_intel", .name = "i2c_intel",
.id = UCLASS_I2C, .id = UCLASS_I2C,
.of_match = intel_i2c_ids, .of_match = intel_i2c_ids,
.per_child_auto_alloc_size = sizeof(struct dm_i2c_chip),
.ops = &intel_i2c_ops, .ops = &intel_i2c_ops,
.probe = intel_i2c_probe, .probe = intel_i2c_probe,
}; };
...@@ -183,7 +183,6 @@ static const struct dm_i2c_ops i2c_mux_bus_ops = { ...@@ -183,7 +183,6 @@ static const struct dm_i2c_ops i2c_mux_bus_ops = {
U_BOOT_DRIVER(i2c_mux_bus) = { U_BOOT_DRIVER(i2c_mux_bus) = {
.name = "i2c_mux_bus_drv", .name = "i2c_mux_bus_drv",
.id = UCLASS_I2C, .id = UCLASS_I2C,
.per_child_auto_alloc_size = sizeof(struct dm_i2c_chip),
.ops = &i2c_mux_bus_ops, .ops = &i2c_mux_bus_ops,
}; };
......
...@@ -1433,7 +1433,6 @@ U_BOOT_DRIVER(i2c_s3c) = { ...@@ -1433,7 +1433,6 @@ U_BOOT_DRIVER(i2c_s3c) = {
.id = UCLASS_I2C, .id = UCLASS_I2C,
.of_match = s3c_i2c_ids, .of_match = s3c_i2c_ids,
.ofdata_to_platdata = s3c_i2c_ofdata_to_platdata, .ofdata_to_platdata = s3c_i2c_ofdata_to_platdata,
.per_child_auto_alloc_size = sizeof(struct dm_i2c_chip),
.priv_auto_alloc_size = sizeof(struct s3c24x0_i2c_bus), .priv_auto_alloc_size = sizeof(struct s3c24x0_i2c_bus),
.ops = &s3c_i2c_ops, .ops = &s3c_i2c_ops,
}; };
...@@ -1458,7 +1457,6 @@ U_BOOT_DRIVER(hs_i2c) = { ...@@ -1458,7 +1457,6 @@ U_BOOT_DRIVER(hs_i2c) = {
.id = UCLASS_I2C, .id = UCLASS_I2C,
.of_match = exynos_hs_i2c_ids, .of_match = exynos_hs_i2c_ids,
.ofdata_to_platdata = s3c_i2c_ofdata_to_platdata, .ofdata_to_platdata = s3c_i2c_ofdata_to_platdata,
.per_child_auto_alloc_size = sizeof(struct dm_i2c_chip),
.priv_auto_alloc_size = sizeof(struct s3c24x0_i2c_bus), .priv_auto_alloc_size = sizeof(struct s3c24x0_i2c_bus),
.ops = &exynos_hs_i2c_ops, .ops = &exynos_hs_i2c_ops,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册