Re: [PATCH v2] iio: bmi160: use all devm functions in probe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/10/18 1:15 PM, Jonathan Cameron wrote:
On Sun,  9 Dec 2018 19:14:55 -0800
Martin Kelly <martin@xxxxxxxxxxxxxxxx> wrote:

From: Martin Kelly <martin@xxxxxxxxxxxxxxxx>

Currently, we're using the devm version of some but not all functions.
Switch to the devm version of iio_triggered_buffer_setup and
iio_device_register to simplify the code a bit and decrease the chance of
bugs.

Signed-off-by: Martin Kelly <martin@xxxxxxxxxxxxxxxx>

Great little tidy up. Thanks.  One little tweak. You missed the header so
I'll tidy that up as well.

Applied to the togreg branch of iio.git and pushed out as testing for
the autobuilders to play with it.



Oh, I did miss a header. Good catch and thanks!



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux