axp20x-i2c.c (715a1284d89a740b197b3bad5eb20d36a397382f) | axp20x-i2c.c (3c15e00e7b58bc2b37e53d2612f0a0163281be77) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * I2C driver for the X-Powers' Power Management ICs 4 * 5 * AXP20x typically comprises an adaptive USB-Compatible PWM charger, BUCK DC-DC 6 * converters, LDOs, multiple 12-bit ADCs of voltage, current and temperature 7 * as well as configurable GPIOs. 8 * --- 40 unchanged lines hidden (view full) --- 49 50 return axp20x_device_probe(axp20x); 51} 52 53static int axp20x_i2c_remove(struct i2c_client *i2c) 54{ 55 struct axp20x_dev *axp20x = i2c_get_clientdata(i2c); 56 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * I2C driver for the X-Powers' Power Management ICs 4 * 5 * AXP20x typically comprises an adaptive USB-Compatible PWM charger, BUCK DC-DC 6 * converters, LDOs, multiple 12-bit ADCs of voltage, current and temperature 7 * as well as configurable GPIOs. 8 * --- 40 unchanged lines hidden (view full) --- 49 50 return axp20x_device_probe(axp20x); 51} 52 53static int axp20x_i2c_remove(struct i2c_client *i2c) 54{ 55 struct axp20x_dev *axp20x = i2c_get_clientdata(i2c); 56 |
57 return axp20x_device_remove(axp20x); | 57 axp20x_device_remove(axp20x); 58 59 return 0; |
58} 59 60#ifdef CONFIG_OF 61static const struct of_device_id axp20x_i2c_of_match[] = { 62 { .compatible = "x-powers,axp152", .data = (void *)AXP152_ID }, 63 { .compatible = "x-powers,axp202", .data = (void *)AXP202_ID }, 64 { .compatible = "x-powers,axp209", .data = (void *)AXP209_ID }, 65 { .compatible = "x-powers,axp221", .data = (void *)AXP221_ID }, --- 47 unchanged lines hidden --- | 60} 61 62#ifdef CONFIG_OF 63static const struct of_device_id axp20x_i2c_of_match[] = { 64 { .compatible = "x-powers,axp152", .data = (void *)AXP152_ID }, 65 { .compatible = "x-powers,axp202", .data = (void *)AXP202_ID }, 66 { .compatible = "x-powers,axp209", .data = (void *)AXP209_ID }, 67 { .compatible = "x-powers,axp221", .data = (void *)AXP221_ID }, --- 47 unchanged lines hidden --- |