diff mbox

ALSA: asihpi: Fix duplicate const for clock sources

Message ID 1427194104-31617-1-git-send-email-k.kozlowski@samsung.com (mailing list archive)
State Accepted
Commit 46d212cbe4111351741b85b29dbb106b50d68532
Headers show

Commit Message

Krzysztof Kozlowski March 24, 2015, 10:48 a.m. UTC
Replace duplicated const keyword for 'sampleclock_sources' with proper
array of const pointers to const strings.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
---
 sound/pci/asihpi/asihpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Takashi Iwai March 24, 2015, 10:51 a.m. UTC | #1
At Tue, 24 Mar 2015 11:48:24 +0100,
Krzysztof Kozlowski wrote:
> 
> Replace duplicated const keyword for 'sampleclock_sources' with proper
> array of const pointers to const strings.
> 
> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>

Applied, thanks.


Takashi

> ---
>  sound/pci/asihpi/asihpi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/pci/asihpi/asihpi.c b/sound/pci/asihpi/asihpi.c
> index e5cd7be85355..1039eccbb895 100644
> --- a/sound/pci/asihpi/asihpi.c
> +++ b/sound/pci/asihpi/asihpi.c
> @@ -2376,7 +2376,7 @@ static int snd_asihpi_cmode_add(struct snd_card_asihpi *asihpi,
>  /*------------------------------------------------------------
>     Sampleclock source  controls
>   ------------------------------------------------------------*/
> -static const char const *sampleclock_sources[] = {
> +static const char * const sampleclock_sources[] = {
>  	"N/A", "Local PLL", "Digital Sync", "Word External", "Word Header",
>  	"SMPTE", "Digital1", "Auto", "Network", "Invalid",
>  	"Prev Module", "BLU-Link",
> -- 
> 1.9.1
>
diff mbox

Patch

diff --git a/sound/pci/asihpi/asihpi.c b/sound/pci/asihpi/asihpi.c
index e5cd7be85355..1039eccbb895 100644
--- a/sound/pci/asihpi/asihpi.c
+++ b/sound/pci/asihpi/asihpi.c
@@ -2376,7 +2376,7 @@  static int snd_asihpi_cmode_add(struct snd_card_asihpi *asihpi,
 /*------------------------------------------------------------
    Sampleclock source  controls
  ------------------------------------------------------------*/
-static const char const *sampleclock_sources[] = {
+static const char * const sampleclock_sources[] = {
 	"N/A", "Local PLL", "Digital Sync", "Word External", "Word Header",
 	"SMPTE", "Digital1", "Auto", "Network", "Invalid",
 	"Prev Module", "BLU-Link",