[Letux-kernel] [PATCH 5/9] iio: accel: bma180: convert to devm

H. Nikolaus Schaller hns at goldelico.com
Wed Feb 20 17:15:09 CET 2019


> Am 20.02.2019 um 17:09 schrieb Andy Shevchenko <andriy.shevchenko at linux.intel.com>:
> 
> On Wed, Feb 20, 2019 at 03:00:52PM +0100, H. Nikolaus Schaller wrote:
>> This simplifies the code a little.
> 
>> -err_buffer_cleanup:
>> -	iio_triggered_buffer_cleanup(indio_dev);
>> -err_trigger_unregister:
>> -	if (data->trig)
>> -		iio_trigger_unregister(data->trig);
>> -err_trigger_free:
>> -	iio_trigger_free(data->trig);
> 
>> -err_chip_disable:
>> +err:
> 
> Please, leave the original label name as it's more self-explanatory.

Ok.

> 
>> 	data->part_info->chip_disable(data);
>> 
>> 	return ret;
> 
> -- 
> With Best Regards,
> Andy Shevchenko
> 
> 



More information about the Letux-kernel mailing list