Allow device to sleep during charging.

Change-Id: I5cc86fdc0ea5c15a3a98f9d5e75c4814bc689786
Signed-off-by: David Rodero <david@codiguiel.net>