The bq2407x family is quite similar to the bq24022 charger. As suggested by MyungJoo Ham it should be possible to implement support for it inside the bq24022 driver instead of adding a new one. The first two patches fix small things Mark Brown identified in my submission of a separate bq2407x driver that also exist in the bq24022 while the third implements the bq2407x specifics. Heiko Stuebner (3): bq24022: Evaluate returns of gpio_direction_output-calls bq24022: Keep track of gpio states bq24022: Add support for the bq2407x family drivers/regulator/Kconfig | 7 +- drivers/regulator/bq24022.c | 138 ++++++++++++++++++++++++++++++------- include/linux/regulator/bq24022.h | 7 ++ 3 files changed, 125 insertions(+), 27 deletions(-) -- 1.7.2.3 _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm