Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: icy: no need to populate address for scanned device

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>

authored by

Wolfram Sang and committed by
Wolfram Sang
7bdf7c84 bcc156e2

-1
-1
drivers/i2c/busses/i2c-icy.c
··· 122 122 struct fwnode_handle *new_fwnode; 123 123 struct i2c_board_info ltc2990_info = { 124 124 .type = "ltc2990", 125 - .addr = 0x4c, 126 125 }; 127 126 128 127 i2c = devm_kzalloc(&z->dev, sizeof(*i2c), GFP_KERNEL);