ALSA: vx: More constifications
[sfrench/cifs-2.6.git] / sound / drivers / vx / vx_core.c
index dd35de3f2434a3d9f7f36763a226b5624d38916f..ffab0400d7fbed908e4ce7522f023d9362789e0a 100644 (file)
@@ -39,7 +39,7 @@ MODULE_LICENSE("GPL");
 int snd_vx_check_reg_bit(struct vx_core *chip, int reg, int mask, int bit, int time)
 {
        unsigned long end_time = jiffies + (time * HZ + 999) / 1000;
-       static char *reg_names[VX_REG_MAX] = {
+       static const char * const reg_names[VX_REG_MAX] = {
                "ICR", "CVR", "ISR", "IVR", "RXH", "RXM", "RXL",
                "DMA", "CDSP", "RFREQ", "RUER/V2", "DATA", "MEMIRQ",
                "ACQ", "BIT0", "BIT1", "MIC0", "MIC1", "MIC2",
@@ -588,11 +588,11 @@ static void vx_reset_board(struct vx_core *chip, int cold_reset)
 static void vx_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer)
 {
        struct vx_core *chip = entry->private_data;
-       static char *audio_src_vxp[] = { "Line", "Mic", "Digital" };
-       static char *audio_src_vx2[] = { "Analog", "Analog", "Digital" };
-       static char *clock_mode[] = { "Auto", "Internal", "External" };
-       static char *clock_src[] = { "Internal", "External" };
-       static char *uer_type[] = { "Consumer", "Professional", "Not Present" };
+       static const char * const audio_src_vxp[] = { "Line", "Mic", "Digital" };
+       static const char * const audio_src_vx2[] = { "Analog", "Analog", "Digital" };
+       static const char * const clock_mode[] = { "Auto", "Internal", "External" };
+       static const char * const clock_src[] = { "Internal", "External" };
+       static const char * const uer_type[] = { "Consumer", "Professional", "Not Present" };
        
        snd_iprintf(buffer, "%s\n", chip->card->longname);
        snd_iprintf(buffer, "Xilinx Firmware: %s\n",