Thread (5 messages) 5 messages, 3 authors, 2012-05-12

Re: [PATCH] iio: Remove unused iio_device_put()

From: Jonathan Cameron <jic23@kernel.org>
Date: 2012-05-12 15:50:12

On 05/12/2012 03:33 PM, Greg Kroah-Hartman wrote:
On Sat, May 12, 2012 at 04:24:22PM +0200, Lars-Peter Clausen wrote:
quoted
On 05/12/2012 04:18 PM, Greg Kroah-Hartman wrote:
quoted
On Fri, May 11, 2012 at 03:13:13PM +0200, Lars-Peter Clausen wrote:
quoted
This function is currently unused and we do not have a matching iio_device_get()
function either, so just remove it.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
No, I see a number of places it should be used.  Don't do "raw"
put_device() calls, every one of them could be making this call instead,
right?
Hm, right in the new inkern code there are some put_device calls on
indio_dev.dev, I missed those, sorry. But we should really add a matching
iio_device_get() as well.
I agree, and then fix up the inkern.c calls to call that as well :)

thanks,

greg k-h
Got to love code evolution and the mess it can leave.  Thanks for
picking up on this Greg.  I'd completely forgotten those were there
when I reviewed it..

Agreed that we want a pair of wrappers and assuming Lars-Peter
will add them if I don't hear anything else :)

Jonathan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help