OSDN Git Service

i2c: icy: no need to populate address for scanned device
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 6 Nov 2019 15:02:31 +0000 (16:02 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 11 Nov 2019 19:46:08 +0000 (20:46 +0100)
i2c_new_{probed|scanned}_device will update the address after scanning.
No need to preset it.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Max Staudt <max@enpas.org>
Tested-by: Max Staudt <max@enpas.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-icy.c

index 8382eb6..9d9fd78 100644 (file)
@@ -122,7 +122,6 @@ static int icy_probe(struct zorro_dev *z,
        struct fwnode_handle *new_fwnode;
        struct i2c_board_info ltc2990_info = {
                .type           = "ltc2990",
-               .addr           = 0x4c,
        };
 
        i2c = devm_kzalloc(&z->dev, sizeof(*i2c), GFP_KERNEL);