Hi Jonathan, On 3 August 2013 23:15, Jonathan Cameron <jic23@xxxxxxxxxx> wrote: > On 08/02/13 11:08, Sachin Kamat wrote: >> Using devm_iio_device_alloc makes code simpler. >> >> Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx> >> Cc: Denis Ciocca <denis.ciocca@xxxxxx> > Applied to the togreg branch of iio.git > > Thanks for getting all of these done. > > Whilst this sort of change is kind of simple, the reduction in > complexity makes my life as maintainer easier in the long > run so I am very much in favour! > > Also getting rid of all cases like you are doing means > that best practice is obvious to anyone writing new drivers. > Thanks for your words of encouragement. I appreciate it. Converting to devm_* APIs is definitely a useful change as it makes the code simpler and error handling safer and cleaner. Thanks to all the people involved in implementing and merging iio specific devm APIs. I will continue to convert all the remaining drivers of iio to use devm APIs. -- With warm regards, Sachin -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html