Thread (14 messages) 14 messages, 4 authors, 2014-11-04

[PATCH 0/7] power_supply: Decrement the device reference counter

From: Pavel Machek <hidden>
Date: 2014-10-15 12:18:46
Also in: linux-pm, lkml

Hi!
The reference counter of device allocated for power supply was
incremented with each call to power_supply_get_by_name() and
power_supply_get_by_phandle().

Add a symmetric 'put' operation so the device could be released after
final put_device() call during supply unregistering.


Rebased on next-20141007 + mine [1] patchset.
Tested on Trats2 board (max77693 + charger manager).

Kindly asking for reviewing/testing other drivers.
I'm not sure if we should support power_supply_put(NULL), but
otherwise the series looks ok to me.

Acked-by: Pavel Machek <redacted>

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help