Update charger.c and add in upatch script.