summaryrefslogtreecommitdiffstats
path: root/include/sound/compress_driver.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-30 08:16:35 +0100
committerTakashi Iwai <tiwai@suse.de>2015-02-02 14:42:45 +0100
commit04c5d5a430fca046cffac099a3f41e74816939da (patch)
treeef729f9772a7bd0673dede15fb64a62d8e3e6284 /include/sound/compress_driver.h
parent5205388d2d6dbdc5cb743c4e3f61acb9a5e5794f (diff)
downloadlinux-04c5d5a430fca046cffac099a3f41e74816939da.tar.gz
linux-04c5d5a430fca046cffac099a3f41e74816939da.tar.bz2
linux-04c5d5a430fca046cffac099a3f41e74816939da.zip
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/compress_driver.h')
-rw-r--r--include/sound/compress_driver.h4
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;