power: bq2419x-charger: simplify charging current configuration
authorLaxman Dewangan <ldewangan@nvidia.com>
Sat, 1 Jun 2013 10:39:42 +0000 (15:39 +0530)
committerRiham Haidar <rhaidar@nvidia.com>
Tue, 4 Jun 2013 00:54:49 +0000 (17:54 -0700)
commit63a13c5e252ddfeaaa08d73e7d5ae24e3ab11ba7
treef967b0b996e66c3f7702f8042675e41dbd4c3109
parent28a4b9ea6294957230529245088d5d068e446055
power: bq2419x-charger: simplify charging current configuration

When VBUS is detected by the USB driver and call set charging current,
there is lots of logic for cable identification based on different current
value.

All these are not require as cable identification and notification is
done in power supply extcon driver. Simplifying the set_charging_current()
implementation.

bug 1286396

Change-Id: I401b3a7f632722ca797802556c0b5d15e3a0f959
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/234765
Reviewed-by: Automatic_Commit_Validation_User
drivers/power/bq2419x-charger.c