From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <4FAE7296.90903@metafoo.de> Date: Sat, 12 May 2012 16:24:22 +0200 From: Lars-Peter Clausen MIME-Version: 1.0 To: Greg Kroah-Hartman CC: Jonathan Cameron , devel@driverdev.osuosl.org, linux-iio@vger.kernel.org Subject: Re: [PATCH] iio: Remove unused iio_device_put() References: <1336741993-30310-1-git-send-email-lars@metafoo.de> <20120512141807.GA30846@kroah.com> In-Reply-To: <20120512141807.GA30846@kroah.com> Content-Type: text/plain; charset=ISO-8859-1 List-ID: On 05/12/2012 04:18 PM, Greg Kroah-Hartman wrote: > On Fri, May 11, 2012 at 03:13:13PM +0200, Lars-Peter Clausen wrote: >> 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 >> Acked-by: Jonathan Cameron > > 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. - Lars