Commit e53134fe authored by Nick Simonov's avatar Nick Simonov Committed by Takashi Iwai

ALSA: xen-front: Refine indentations and constify snd_pcm_ops

snd_pcm_ops are not supposed to change. So mark the
non-const structs as const. Also, refine indentation
to ncrease readability.
Signed-off-by: default avatarNick Simonov <nicksimonovv@gmail.com>
Reviewed-by: default avatarOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 05e2ec3b
...@@ -637,7 +637,7 @@ static int alsa_pb_fill_silence(struct snd_pcm_substream *substream, ...@@ -637,7 +637,7 @@ static int alsa_pb_fill_silence(struct snd_pcm_substream *substream,
* to know when the buffer can be transferred to the backend. * to know when the buffer can be transferred to the backend.
*/ */
static struct snd_pcm_ops snd_drv_alsa_playback_ops = { static const struct snd_pcm_ops snd_drv_alsa_playback_ops = {
.open = alsa_open, .open = alsa_open,
.close = alsa_close, .close = alsa_close,
.ioctl = snd_pcm_lib_ioctl, .ioctl = snd_pcm_lib_ioctl,
...@@ -651,7 +651,7 @@ static struct snd_pcm_ops snd_drv_alsa_playback_ops = { ...@@ -651,7 +651,7 @@ static struct snd_pcm_ops snd_drv_alsa_playback_ops = {
.fill_silence = alsa_pb_fill_silence, .fill_silence = alsa_pb_fill_silence,
}; };
static struct snd_pcm_ops snd_drv_alsa_capture_ops = { static const struct snd_pcm_ops snd_drv_alsa_capture_ops = {
.open = alsa_open, .open = alsa_open,
.close = alsa_close, .close = alsa_close,
.ioctl = snd_pcm_lib_ioctl, .ioctl = snd_pcm_lib_ioctl,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment