diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-30 10:16:35 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-02-02 16:42:45 +0300 |
commit | 04c5d5a430fca046cffac099a3f41e74816939da (patch) | |
tree | ef729f9772a7bd0673dede15fb64a62d8e3e6284 /include/sound | |
parent | 5205388d2d6dbdc5cb743c4e3f61acb9a5e5794f (diff) | |
download | linux-04c5d5a430fca046cffac099a3f41e74816939da.tar.xz |
ALSA: compress: Embed struct device
Like previous patches, this one embeds the struct device into struct
snd_compr. As the dev field wasn't used beforehand, it's reused as
the new device struct.
Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/compress_driver.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sound/compress_driver.h b/include/sound/compress_driver.h index 396e8f73670a..1d0593b52573 100644 --- a/include/sound/compress_driver.h +++ b/include/sound/compress_driver.h @@ -134,7 +134,7 @@ struct snd_compr_ops { /** * struct snd_compr: Compressed device * @name: DSP device name - * @dev: Device pointer + * @dev: associated device instance * @ops: pointer to DSP callbacks * @private_data: pointer to DSP pvt data * @card: sound card pointer @@ -144,7 +144,7 @@ struct snd_compr_ops { */ struct snd_compr { const char *name; - struct device *dev; + struct device dev; struct snd_compr_ops *ops; void *private_data; struct snd_card *card; |