iio: core: Move kernel doc to the right location
Documentation related to function should be placed above its implementation. Move it accordingly. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:

committed by
Jonathan Cameron

parent
8caa07c0e5
commit
a7e57dce02
@@ -506,6 +506,23 @@ static int devm_iio_trigger_match(struct device *dev, void *res, void *data)
|
||||
return *r == data;
|
||||
}
|
||||
|
||||
/**
|
||||
* devm_iio_trigger_alloc - Resource-managed iio_trigger_alloc()
|
||||
* @dev: Device to allocate iio_trigger for
|
||||
* @fmt: trigger name format. If it includes format
|
||||
* specifiers, the additional arguments following
|
||||
* format are formatted and inserted in the resulting
|
||||
* string replacing their respective specifiers.
|
||||
*
|
||||
* Managed iio_trigger_alloc. iio_trigger allocated with this function is
|
||||
* automatically freed on driver detach.
|
||||
*
|
||||
* If an iio_trigger allocated with this function needs to be freed separately,
|
||||
* devm_iio_trigger_free() must be used.
|
||||
*
|
||||
* RETURNS:
|
||||
* Pointer to allocated iio_trigger on success, NULL on failure.
|
||||
*/
|
||||
struct iio_trigger *devm_iio_trigger_alloc(struct device *dev,
|
||||
const char *fmt, ...)
|
||||
{
|
||||
@@ -532,6 +549,13 @@ struct iio_trigger *devm_iio_trigger_alloc(struct device *dev,
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(devm_iio_trigger_alloc);
|
||||
|
||||
/**
|
||||
* devm_iio_trigger_free - Resource-managed iio_trigger_free()
|
||||
* @dev: Device this iio_dev belongs to
|
||||
* @iio_trig: the iio_trigger associated with the device
|
||||
*
|
||||
* Free iio_trigger allocated with devm_iio_trigger_alloc().
|
||||
*/
|
||||
void devm_iio_trigger_free(struct device *dev, struct iio_trigger *iio_trig)
|
||||
{
|
||||
int rc;
|
||||
|
Reference in New Issue
Block a user