]> git.sur5r.net Git - u-boot/commitdiff
i2c: Drop redundant platform data setting in drivers
authorSimon Glass <sjg@chromium.org>
Sat, 6 Aug 2016 03:35:27 +0000 (21:35 -0600)
committerHeiko Schocher <hs@denx.de>
Fri, 12 Aug 2016 04:41:41 +0000 (06:41 +0200)
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: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/i2c/cros_ec_ldo.c
drivers/i2c/cros_ec_tunnel.c
drivers/i2c/intel_i2c.c
drivers/i2c/muxes/i2c-mux-uclass.c
drivers/i2c/s3c24x0_i2c.c

index b817c61f1c5bbc00d6bf7108dc277145964620f8..a4cd6604065b883f42a923e61ae1af33f369ef44 100644 (file)
@@ -72,6 +72,5 @@ U_BOOT_DRIVER(cros_ec_ldo) = {
        .name   = "cros_ec_ldo_tunnel",
        .id     = UCLASS_I2C,
        .of_match = cros_ec_i2c_ids,
-       .per_child_auto_alloc_size = sizeof(struct dm_i2c_chip),
        .ops    = &cros_ec_i2c_ops,
 };
index 7ab1fd898ad0bd13d5e6e606869361b1ea812b16..e2c6e447951068ba7505d90cfcaf547431665199 100644 (file)
@@ -36,6 +36,5 @@ U_BOOT_DRIVER(cros_ec_tunnel) = {
        .name   = "cros_ec_tunnel",
        .id     = UCLASS_I2C,
        .of_match = cros_ec_i2c_ids,
-       .per_child_auto_alloc_size = sizeof(struct dm_i2c_chip),
        .ops    = &cros_ec_i2c_ops,
 };
index 3d777ff23e090e3b964343cc513402ffec55f6ff..ba806627d0942eea071942b46d2181900136f232 100644 (file)
@@ -69,7 +69,6 @@ U_BOOT_DRIVER(intel_i2c) = {
        .name   = "i2c_intel",
        .id     = UCLASS_I2C,
        .of_match = intel_i2c_ids,
-       .per_child_auto_alloc_size = sizeof(struct dm_i2c_chip),
        .ops    = &intel_i2c_ops,
        .probe  = intel_i2c_probe,
 };
index 3f52bff2fb03bfaf6781b87963cb29ddee3a12a1..7a698b62b5aa4c6a91ed509774ebdb39b1bf0077 100644 (file)
@@ -183,7 +183,6 @@ static const struct dm_i2c_ops i2c_mux_bus_ops = {
 U_BOOT_DRIVER(i2c_mux_bus) = {
        .name           = "i2c_mux_bus_drv",
        .id             = UCLASS_I2C,
-       .per_child_auto_alloc_size = sizeof(struct dm_i2c_chip),
        .ops    = &i2c_mux_bus_ops,
 };
 
index dc9b661c1cf754632cc7d673c024f860332e60b4..eab49d09bab341a1fe39f7f7418ce23015d925d3 100644 (file)
@@ -1433,7 +1433,6 @@ U_BOOT_DRIVER(i2c_s3c) = {
        .id     = UCLASS_I2C,
        .of_match = s3c_i2c_ids,
        .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),
        .ops    = &s3c_i2c_ops,
 };
@@ -1458,7 +1457,6 @@ U_BOOT_DRIVER(hs_i2c) = {
        .id     = UCLASS_I2C,
        .of_match = exynos_hs_i2c_ids,
        .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),
        .ops    = &exynos_hs_i2c_ops,
 };