fix-pcf50633-charge-enable-wtf.patch From: Andy Green <[EMAIL PROTECTED]>
A somewhat vital piece of code was missing from pcf50633_charge_enable leading to a sad lack of any charging activity ;-) Signed-off-by: Andy Green <[EMAIL PROTECTED]> --- drivers/i2c/chips/pcf50633.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/chips/pcf50633.c b/drivers/i2c/chips/pcf50633.c index fe7c10b..b7114d7 100644 --- a/drivers/i2c/chips/pcf50633.c +++ b/drivers/i2c/chips/pcf50633.c @@ -889,6 +889,8 @@ void pcf50633_charge_enable(struct pcf50633_data *pcf, int on) pcf->flags &= ~PCF50633_F_CHG_ENABLED; bits = 0; } + reg_set_bit_mask(pcf, PCF50633_REG_MBCC1, PCF50633_MBCC1_CHGENA, + bits); } EXPORT_SYMBOL_GPL(pcf50633_charge_enable);
