Commit 91b623c
power: supply: core: simplify charge_behaviour formatting
The function power_supply_show_charge_behaviour() is not needed and can
be removed completely.
Removing the function also saves a spurious read of the property from
the driver on each call.
The convulted logic was a leftover from an earlier patch revision.
Some restructuring made this cleanup possible.
Suggested-by: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/
Fixes: 4e61f1e ("power: supply: core: fix charge_behaviour formatting")
Signed-off-by: Thomas Weißschuh <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sebastian Reichel <[email protected]>1 parent 070c147 commit 91b623c
1 file changed
+2
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | 274 | | |
292 | 275 | | |
293 | 276 | | |
| |||
321 | 304 | | |
322 | 305 | | |
323 | 306 | | |
324 | | - | |
| 307 | + | |
| 308 | + | |
325 | 309 | | |
326 | 310 | | |
327 | 311 | | |
| |||
0 commit comments