@@ -190,7 +190,7 @@ EXPORT_SYMBOL(snd_ctl_notify);
190190 * Allocates a new struct snd_kcontrol instance and copies the given template
191191 * to the new instance. It does not copy volatile data (access).
192192 *
193- * Returns the pointer of the new instance, or NULL on failure.
193+ * Return: The pointer of the new instance, or % NULL on failure.
194194 */
195195static struct snd_kcontrol * snd_ctl_new (struct snd_kcontrol * control ,
196196 unsigned int access )
@@ -224,7 +224,7 @@ static struct snd_kcontrol *snd_ctl_new(struct snd_kcontrol *control,
224224 * template. When the access field of ncontrol is 0, it's assumed as
225225 * READWRITE access. When the count field is 0, it's assumes as one.
226226 *
227- * Returns the pointer of the newly generated instance, or NULL on failure.
227+ * Return: The pointer of the newly generated instance, or % NULL on failure.
228228 */
229229struct snd_kcontrol * snd_ctl_new1 (const struct snd_kcontrol_new * ncontrol ,
230230 void * private_data )
@@ -322,9 +322,10 @@ static int snd_ctl_find_hole(struct snd_card *card, unsigned int count)
322322 * snd_ctl_new1() to the given card. Assigns also an unique
323323 * numid used for fast search.
324324 *
325- * Returns zero if successful, or a negative error code on failure.
326- *
327325 * It frees automatically the control which cannot be added.
326+ *
327+ * Return: Zero if successful, or a negative error code on failure.
328+ *
328329 */
329330int snd_ctl_add (struct snd_card * card , struct snd_kcontrol * kcontrol )
330331{
@@ -380,9 +381,9 @@ EXPORT_SYMBOL(snd_ctl_add);
380381 * and the add_on_replace flag is set, the control is added. If the
381382 * control exists, it is destroyed first.
382383 *
383- * Returns zero if successful, or a negative error code on failure.
384- *
385384 * It frees automatically the control which cannot be added or replaced.
385+ *
386+ * Return: Zero if successful, or a negative error code on failure.
386387 */
387388int snd_ctl_replace (struct snd_card * card , struct snd_kcontrol * kcontrol ,
388389 bool add_on_replace )
@@ -442,8 +443,8 @@ EXPORT_SYMBOL(snd_ctl_replace);
442443 * Removes the control from the card and then releases the instance.
443444 * You don't need to call snd_ctl_free_one(). You must be in
444445 * the write lock - down_write(&card->controls_rwsem).
445- *
446- * Returns 0 if successful, or a negative error code on failure.
446+ *
447+ * Return: 0 if successful, or a negative error code on failure.
447448 */
448449int snd_ctl_remove (struct snd_card * card , struct snd_kcontrol * kcontrol )
449450{
@@ -470,8 +471,8 @@ EXPORT_SYMBOL(snd_ctl_remove);
470471 *
471472 * Finds the control instance with the given id, removes it from the
472473 * card list and releases it.
473- *
474- * Returns 0 if successful, or a negative error code on failure.
474+ *
475+ * Return: 0 if successful, or a negative error code on failure.
475476 */
476477int snd_ctl_remove_id (struct snd_card * card , struct snd_ctl_elem_id * id )
477478{
@@ -498,8 +499,8 @@ EXPORT_SYMBOL(snd_ctl_remove_id);
498499 *
499500 * Finds the control instance with the given id, removes it from the
500501 * card list and releases it.
501- *
502- * Returns 0 if successful, or a negative error code on failure.
502+ *
503+ * Return: 0 if successful, or a negative error code on failure.
503504 */
504505static int snd_ctl_remove_user_ctl (struct snd_ctl_file * file ,
505506 struct snd_ctl_elem_id * id )
@@ -541,7 +542,7 @@ static int snd_ctl_remove_user_ctl(struct snd_ctl_file * file,
541542 * Finds the control instance with the given id, and activate or
542543 * inactivate the control together with notification, if changed.
543544 *
544- * Returns 0 if unchanged, 1 if changed, or a negative error code on failure.
545+ * Return: 0 if unchanged, 1 if changed, or a negative error code on failure.
545546 */
546547int snd_ctl_activate_id (struct snd_card * card , struct snd_ctl_elem_id * id ,
547548 int active )
@@ -587,7 +588,7 @@ EXPORT_SYMBOL_GPL(snd_ctl_activate_id);
587588 * Finds the control with the old id from the card, and replaces the
588589 * id with the new one.
589590 *
590- * Returns zero if successful, or a negative error code on failure.
591+ * Return: Zero if successful, or a negative error code on failure.
591592 */
592593int snd_ctl_rename_id (struct snd_card * card , struct snd_ctl_elem_id * src_id ,
593594 struct snd_ctl_elem_id * dst_id )
@@ -616,10 +617,11 @@ EXPORT_SYMBOL(snd_ctl_rename_id);
616617 *
617618 * Finds the control instance with the given number-id from the card.
618619 *
619- * Returns the pointer of the instance if found, or NULL if not.
620- *
621620 * The caller must down card->controls_rwsem before calling this function
622621 * (if the race condition can happen).
622+ *
623+ * Return: The pointer of the instance if found, or %NULL if not.
624+ *
623625 */
624626struct snd_kcontrol * snd_ctl_find_numid (struct snd_card * card , unsigned int numid )
625627{
@@ -643,10 +645,11 @@ EXPORT_SYMBOL(snd_ctl_find_numid);
643645 *
644646 * Finds the control instance with the given id from the card.
645647 *
646- * Returns the pointer of the instance if found, or NULL if not.
647- *
648648 * The caller must down card->controls_rwsem before calling this function
649649 * (if the race condition can happen).
650+ *
651+ * Return: The pointer of the instance if found, or %NULL if not.
652+ *
650653 */
651654struct snd_kcontrol * snd_ctl_find_id (struct snd_card * card ,
652655 struct snd_ctl_elem_id * id )
@@ -1710,6 +1713,8 @@ EXPORT_SYMBOL(snd_ctl_boolean_stereo_info);
17101713 * Sets all required fields in @info to their appropriate values.
17111714 * If the control's accessibility is not the default (readable and writable),
17121715 * the caller has to fill @info->access.
1716+ *
1717+ * Return: Zero.
17131718 */
17141719int snd_ctl_enum_info (struct snd_ctl_elem_info * info , unsigned int channels ,
17151720 unsigned int items , const char * const names [])
0 commit comments