diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-10-28 12:26:48 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-10-28 12:37:29 +0100 |
commit | 78dd5e21b075053e67194ea8f496439bebc52728 (patch) | |
tree | 8bf5d26f13b6189a5bbc6b9bca10bc4bb3074b4a /sound/hda/hdac_bus.c | |
parent | e5e113cf0d19392f26c6b63e63ad4680ee4ec5da (diff) | |
download | linux-stable-78dd5e21b075053e67194ea8f496439bebc52728.tar.gz linux-stable-78dd5e21b075053e67194ea8f496439bebc52728.tar.bz2 linux-stable-78dd5e21b075053e67194ea8f496439bebc52728.zip |
ALSA: hda - Add / fix kernel doc comments
Give some readable comment in kernel doc style for each exported
function, as I promised in the previous meetings. While we're at it,
fix the wrong comments, too.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/hda/hdac_bus.c')
-rw-r--r-- | sound/hda/hdac_bus.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sound/hda/hdac_bus.c b/sound/hda/hdac_bus.c index 27c447e4fe5c..0e81ea89a596 100644 --- a/sound/hda/hdac_bus.c +++ b/sound/hda/hdac_bus.c @@ -172,6 +172,15 @@ static void process_unsol_events(struct work_struct *work) } } +/** + * snd_hdac_bus_add_device - Add a codec to bus + * @bus: HDA core bus + * @codec: HDA core device to add + * + * Adds the given codec to the list in the bus. The caddr_tbl array + * and codec_powered bits are updated, as well. + * Returns zero if success, or a negative error code. + */ int snd_hdac_bus_add_device(struct hdac_bus *bus, struct hdac_device *codec) { if (bus->caddr_tbl[codec->addr]) { @@ -188,6 +197,11 @@ int snd_hdac_bus_add_device(struct hdac_bus *bus, struct hdac_device *codec) } EXPORT_SYMBOL_GPL(snd_hdac_bus_add_device); +/** + * snd_hdac_bus_remove_device - Remove a codec from bus + * @bus: HDA core bus + * @codec: HDA core device to remove + */ void snd_hdac_bus_remove_device(struct hdac_bus *bus, struct hdac_device *codec) { |