All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] ALSA: xen-front: Refine indentations and constify snd_pcm_ops
@ 2018-09-21  5:47 Nick Simonov
  2018-09-21  6:51 ` Takashi Iwai
  2018-09-21  6:51   ` Takashi Iwai
  0 siblings, 2 replies; 9+ messages in thread
From: Nick Simonov @ 2018-09-21  5:47 UTC (permalink / raw)
  To: oleksandr_andrushchenko
  Cc: xen-devel, alsa-devel, tiwai, inux-kernel, nicksimonovv

snd_pcm_ops are not supposed to change. So mark the
non-const structs as const. Also, refine indentation
to increase readability.

Signed-off-by: Nick Simonov <nicksimonovv@gmail.com>
---
Changes v2:
- Fix typo in commit description, ncrease to increase.

 sound/xen/xen_snd_front_alsa.c | 46 +++++++++++++++++++++---------------------
 1 file changed, 23 insertions(+), 23 deletions(-)

diff --git a/sound/xen/xen_snd_front_alsa.c b/sound/xen/xen_snd_front_alsa.c
index 129180e..2cbd967 100644
--- a/sound/xen/xen_snd_front_alsa.c
+++ b/sound/xen/xen_snd_front_alsa.c
@@ -637,31 +637,31 @@ static int alsa_pb_fill_silence(struct snd_pcm_substream *substream,
  * to know when the buffer can be transferred to the backend.
  */
 
-static struct snd_pcm_ops snd_drv_alsa_playback_ops = {
-	.open = alsa_open,
-	.close = alsa_close,
-	.ioctl = snd_pcm_lib_ioctl,
-	.hw_params = alsa_hw_params,
-	.hw_free = alsa_hw_free,
-	.prepare = alsa_prepare,
-	.trigger = alsa_trigger,
-	.pointer = alsa_pointer,
-	.copy_user = alsa_pb_copy_user,
-	.copy_kernel = alsa_pb_copy_kernel,
-	.fill_silence = alsa_pb_fill_silence,
+static const struct snd_pcm_ops snd_drv_alsa_playback_ops = {
+	.open		= alsa_open,
+	.close		= alsa_close,
+	.ioctl		= snd_pcm_lib_ioctl,
+	.hw_params	= alsa_hw_params,
+	.hw_free	= alsa_hw_free,
+	.prepare	= alsa_prepare,
+	.trigger	= alsa_trigger,
+	.pointer	= alsa_pointer,
+	.copy_user	= alsa_pb_copy_user,
+	.copy_kernel	= alsa_pb_copy_kernel,
+	.fill_silence	= alsa_pb_fill_silence,
 };
 
-static struct snd_pcm_ops snd_drv_alsa_capture_ops = {
-	.open = alsa_open,
-	.close = alsa_close,
-	.ioctl = snd_pcm_lib_ioctl,
-	.hw_params = alsa_hw_params,
-	.hw_free = alsa_hw_free,
-	.prepare = alsa_prepare,
-	.trigger = alsa_trigger,
-	.pointer = alsa_pointer,
-	.copy_user = alsa_cap_copy_user,
-	.copy_kernel = alsa_cap_copy_kernel,
+static const struct snd_pcm_ops snd_drv_alsa_capture_ops = {
+	.open		= alsa_open,
+	.close		= alsa_close,
+	.ioctl		= snd_pcm_lib_ioctl,
+	.hw_params	= alsa_hw_params,
+	.hw_free	= alsa_hw_free,
+	.prepare	= alsa_prepare,
+	.trigger	= alsa_trigger,
+	.pointer	= alsa_pointer,
+	.copy_user	= alsa_cap_copy_user,
+	.copy_kernel	= alsa_cap_copy_kernel,
 };
 
 static int new_pcm_instance(struct xen_snd_front_card_info *card_info,
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v2] ALSA: xen-front: Refine indentations and constify snd_pcm_ops, Re: [PATCH v2] ALSA: xen-front: Refine indentations and constify snd_pcm_ops
  2018-09-21  5:47 [PATCH v2] ALSA: xen-front: Refine indentations and constify snd_pcm_ops Nick Simonov
@ 2018-09-21  6:51   ` Takashi Iwai
  2018-09-21  6:51   ` Takashi Iwai
  1 sibling, 0 replies; 9+ messages in thread
From: Takashi Iwai @ 2018-09-21  6:51 UTC (permalink / raw)
  To: Nick Simonov; +Cc: oleksandr_andrushchenko, alsa-devel, xen-devel, linux-kernel

On Fri, 21 Sep 2018 07:47:38 +0200,
Nick Simonov wrote:
> 
> snd_pcm_ops are not supposed to change. So mark the
> non-const structs as const. Also, refine indentation
> to increase readability.
> 
> Signed-off-by: Nick Simonov <nicksimonovv@gmail.com>
> ---
> Changes v2:
> - Fix typo in commit description, ncrease to increase.

Since I already merged your first version, please resubmit as an
incremental patch.  At best, check the latest linux-next or my
sound.git tree for-next branch, and create a patch on its top.


thanks,

Takashi

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH v2] ALSA: xen-front: Refine indentations and constify snd_pcm_ops, Re: [PATCH v2] ALSA: xen-front: Refine indentations and constify snd_pcm_ops
@ 2018-09-21  6:51   ` Takashi Iwai
  0 siblings, 0 replies; 9+ messages in thread
From: Takashi Iwai @ 2018-09-21  6:51 UTC (permalink / raw)
  To: Nick Simonov; +Cc: oleksandr_andrushchenko, alsa-devel, xen-devel, linux-kernel

On Fri, 21 Sep 2018 07:47:38 +0200,
Nick Simonov wrote:
> 
> snd_pcm_ops are not supposed to change. So mark the
> non-const structs as const. Also, refine indentation
> to increase readability.
> 
> Signed-off-by: Nick Simonov <nicksimonovv@gmail.com>
> ---
> Changes v2:
> - Fix typo in commit description, ncrease to increase.

Since I already merged your first version, please resubmit as an
incremental patch.  At best, check the latest linux-next or my
sound.git tree for-next branch, and create a patch on its top.


thanks,

Takashi

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH v2] ALSA: xen-front: Refine indentations and constify snd_pcm_ops
  2018-09-21  5:47 [PATCH v2] ALSA: xen-front: Refine indentations and constify snd_pcm_ops Nick Simonov
@ 2018-09-21  6:51 ` Takashi Iwai
  2018-09-21  6:51   ` Takashi Iwai
  1 sibling, 0 replies; 9+ messages in thread
From: Takashi Iwai @ 2018-09-21  6:51 UTC (permalink / raw)
  To: Nick Simonov; +Cc: xen-devel, alsa-devel, linux-kernel, oleksandr_andrushchenko

On Fri, 21 Sep 2018 07:47:38 +0200,
Nick Simonov wrote:
> 
> snd_pcm_ops are not supposed to change. So mark the
> non-const structs as const. Also, refine indentation
> to increase readability.
> 
> Signed-off-by: Nick Simonov <nicksimonovv@gmail.com>
> ---
> Changes v2:
> - Fix typo in commit description, ncrease to increase.

Since I already merged your first version, please resubmit as an
incremental patch.  At best, check the latest linux-next or my
sound.git tree for-next branch, and create a patch on its top.


thanks,

Takashi

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2] ALSA: xen-front: Refine indentations and constify snd_pcm_ops
  2018-09-21  6:51   ` Takashi Iwai
  (?)
@ 2018-09-21  9:21   ` Nick Simonov
  2018-09-21  9:23     ` Takashi Iwai
  2018-09-21  9:23       ` Takashi Iwai
  -1 siblings, 2 replies; 9+ messages in thread
From: Nick Simonov @ 2018-09-21  9:21 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: oleksandr_andrushchenko, alsa-devel, xen-devel, linux-kernel

On Fri, Sep 21, 2018 at 08:51:51AM +0200, Takashi Iwai wrote:
> On Fri, 21 Sep 2018 07:47:38 +0200,
> Nick Simonov wrote:
> > 
> > snd_pcm_ops are not supposed to change. So mark the
> > non-const structs as const. Also, refine indentation
> > to increase readability.
> > 
> > Signed-off-by: Nick Simonov <nicksimonovv@gmail.com>
> > ---
> > Changes v2:
> > - Fix typo in commit description, ncrease to increase.
> 
> Since I already merged your first version, please resubmit as an
> incremental patch.  At best, check the latest linux-next or my
> sound.git tree for-next branch, and create a patch on its top.
> 
> 
> thanks,
> 
> Takashi

Sorry I want to clarify, there is no mistakes in the code itself
there is a typo in commit message. As I now there is no way to change
commit message without rebase after merge, so which is the proper way in
this case? leave it as is?

Thanks,

Nick


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2] ALSA: xen-front: Refine indentations and constify snd_pcm_ops
  2018-09-21  6:51   ` Takashi Iwai
  (?)
  (?)
@ 2018-09-21  9:21   ` Nick Simonov
  -1 siblings, 0 replies; 9+ messages in thread
From: Nick Simonov @ 2018-09-21  9:21 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: xen-devel, alsa-devel, linux-kernel, oleksandr_andrushchenko

On Fri, Sep 21, 2018 at 08:51:51AM +0200, Takashi Iwai wrote:
> On Fri, 21 Sep 2018 07:47:38 +0200,
> Nick Simonov wrote:
> > 
> > snd_pcm_ops are not supposed to change. So mark the
> > non-const structs as const. Also, refine indentation
> > to increase readability.
> > 
> > Signed-off-by: Nick Simonov <nicksimonovv@gmail.com>
> > ---
> > Changes v2:
> > - Fix typo in commit description, ncrease to increase.
> 
> Since I already merged your first version, please resubmit as an
> incremental patch.  At best, check the latest linux-next or my
> sound.git tree for-next branch, and create a patch on its top.
> 
> 
> thanks,
> 
> Takashi

Sorry I want to clarify, there is no mistakes in the code itself
there is a typo in commit message. As I now there is no way to change
commit message without rebase after merge, so which is the proper way in
this case? leave it as is?

Thanks,

Nick


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2] ALSA: xen-front: Refine indentations and constify snd_pcm_ops
  2018-09-21  9:21   ` Nick Simonov
@ 2018-09-21  9:23       ` Takashi Iwai
  2018-09-21  9:23       ` Takashi Iwai
  1 sibling, 0 replies; 9+ messages in thread
From: Takashi Iwai @ 2018-09-21  9:23 UTC (permalink / raw)
  To: Nick Simonov; +Cc: oleksandr_andrushchenko, alsa-devel, xen-devel, linux-kernel

On Fri, 21 Sep 2018 11:21:35 +0200,
Nick Simonov wrote:
> 
> On Fri, Sep 21, 2018 at 08:51:51AM +0200, Takashi Iwai wrote:
> > On Fri, 21 Sep 2018 07:47:38 +0200,
> > Nick Simonov wrote:
> > > 
> > > snd_pcm_ops are not supposed to change. So mark the
> > > non-const structs as const. Also, refine indentation
> > > to increase readability.
> > > 
> > > Signed-off-by: Nick Simonov <nicksimonovv@gmail.com>
> > > ---
> > > Changes v2:
> > > - Fix typo in commit description, ncrease to increase.
> > 
> > Since I already merged your first version, please resubmit as an
> > incremental patch.  At best, check the latest linux-next or my
> > sound.git tree for-next branch, and create a patch on its top.
> > 
> > 
> > thanks,
> > 
> > Takashi
> 
> Sorry I want to clarify, there is no mistakes in the code itself
> there is a typo in commit message. As I now there is no way to change
> commit message without rebase after merge, so which is the proper way in
> this case? leave it as is?

Then let's leave as is.


thanks,

Takashi

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2] ALSA: xen-front: Refine indentations and constify snd_pcm_ops
@ 2018-09-21  9:23       ` Takashi Iwai
  0 siblings, 0 replies; 9+ messages in thread
From: Takashi Iwai @ 2018-09-21  9:23 UTC (permalink / raw)
  To: Nick Simonov; +Cc: oleksandr_andrushchenko, alsa-devel, xen-devel, linux-kernel

On Fri, 21 Sep 2018 11:21:35 +0200,
Nick Simonov wrote:
> 
> On Fri, Sep 21, 2018 at 08:51:51AM +0200, Takashi Iwai wrote:
> > On Fri, 21 Sep 2018 07:47:38 +0200,
> > Nick Simonov wrote:
> > > 
> > > snd_pcm_ops are not supposed to change. So mark the
> > > non-const structs as const. Also, refine indentation
> > > to increase readability.
> > > 
> > > Signed-off-by: Nick Simonov <nicksimonovv@gmail.com>
> > > ---
> > > Changes v2:
> > > - Fix typo in commit description, ncrease to increase.
> > 
> > Since I already merged your first version, please resubmit as an
> > incremental patch.  At best, check the latest linux-next or my
> > sound.git tree for-next branch, and create a patch on its top.
> > 
> > 
> > thanks,
> > 
> > Takashi
> 
> Sorry I want to clarify, there is no mistakes in the code itself
> there is a typo in commit message. As I now there is no way to change
> commit message without rebase after merge, so which is the proper way in
> this case? leave it as is?

Then let's leave as is.


thanks,

Takashi

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2] ALSA: xen-front: Refine indentations and constify snd_pcm_ops
  2018-09-21  9:21   ` Nick Simonov
@ 2018-09-21  9:23     ` Takashi Iwai
  2018-09-21  9:23       ` Takashi Iwai
  1 sibling, 0 replies; 9+ messages in thread
From: Takashi Iwai @ 2018-09-21  9:23 UTC (permalink / raw)
  To: Nick Simonov; +Cc: xen-devel, alsa-devel, linux-kernel, oleksandr_andrushchenko

On Fri, 21 Sep 2018 11:21:35 +0200,
Nick Simonov wrote:
> 
> On Fri, Sep 21, 2018 at 08:51:51AM +0200, Takashi Iwai wrote:
> > On Fri, 21 Sep 2018 07:47:38 +0200,
> > Nick Simonov wrote:
> > > 
> > > snd_pcm_ops are not supposed to change. So mark the
> > > non-const structs as const. Also, refine indentation
> > > to increase readability.
> > > 
> > > Signed-off-by: Nick Simonov <nicksimonovv@gmail.com>
> > > ---
> > > Changes v2:
> > > - Fix typo in commit description, ncrease to increase.
> > 
> > Since I already merged your first version, please resubmit as an
> > incremental patch.  At best, check the latest linux-next or my
> > sound.git tree for-next branch, and create a patch on its top.
> > 
> > 
> > thanks,
> > 
> > Takashi
> 
> Sorry I want to clarify, there is no mistakes in the code itself
> there is a typo in commit message. As I now there is no way to change
> commit message without rebase after merge, so which is the proper way in
> this case? leave it as is?

Then let's leave as is.


thanks,

Takashi

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-09-21  9:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-21  5:47 [PATCH v2] ALSA: xen-front: Refine indentations and constify snd_pcm_ops Nick Simonov
2018-09-21  6:51 ` Takashi Iwai
2018-09-21  6:51 ` [PATCH v2] ALSA: xen-front: Refine indentations and constify snd_pcm_ops, " Takashi Iwai
2018-09-21  6:51   ` Takashi Iwai
2018-09-21  9:21   ` Nick Simonov
2018-09-21  9:23     ` Takashi Iwai
2018-09-21  9:23     ` Takashi Iwai
2018-09-21  9:23       ` Takashi Iwai
2018-09-21  9:21   ` Nick Simonov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.