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

power: supply: bq24190_charger: convert to use i2c_new_client_device()

Move away from the deprecated API in this comment.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Wolfram Sang and committed by
Sebastian Reichel
454b9c1f 478efc79

+1 -1
+1 -1
drivers/power/supply/bq24190_charger.c
··· 673 673 * { .type = "bq24190", .addr = 0x6b, .properties = pe, .irq = irq }; 674 674 * struct i2c_adapter ad = { ... }; 675 675 * i2c_add_adapter(&ad); 676 - * i2c_new_device(&ad, &bi); 676 + * i2c_new_client_device(&ad, &bi); 677 677 */ 678 678 if (device_property_read_bool(bdi->dev, "disable-reset")) 679 679 return 0;