power: bq25890: simplify chip name property getter
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Sun, 3 May 2020 15:21:10 +0000 (17:21 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sun, 3 May 2020 19:49:34 +0000 (21:49 +0200)
commit5956fca78f5c2a6390ab59919a277c3ef169f909
tree36f392b4f2afe7c792091432f0f4242c4c8ab9dd
parentb4c7715c10c106a041b0b3fabd26151c214ea394
power: bq25890: simplify chip name property getter

Driver rejects unknown chips early in the probe(), so when
bq25890_power_supply_get_property() is made reachable, bq->chip_version
will already be set to correct value - there is no need to check
it again.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq25890_charger.c