commit | 5956fca78f5c2a6390ab59919a277c3ef169f909 | [log] [tgz] |
---|---|---|
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | Sun May 03 17:21:10 2020 +0200 |
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | Sun May 03 21:49:34 2020 +0200 |
tree | 36f392b4f2afe7c792091432f0f4242c4c8ab9dd | |
parent | b4c7715c10c106a041b0b3fabd26151c214ea394 [diff] |
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>