]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
Staging:tidspbridge Fix checkpatch.pl warning char * array declaration might be bette...
authorAdithya Krishnamurthy <linux.challenge1@gmail.com>
Tue, 15 Jul 2014 16:48:18 +0000 (22:18 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2014 04:00:42 +0000 (21:00 -0700)
Fixed checkpatch "WARNING: char * array declaration might be better as static const"

Signed-off-by: Adithya Krishnamurthy <linux.challenge1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/tidspbridge/core/io_sm.c

index 42f94e157efdcfaa2f14416c1c7b7a6fb937e743..24bd962e1474aae04ca0c043204bf0c0ba8e882d 100644 (file)
@@ -1910,10 +1910,11 @@ int dump_dsp_stack(struct bridge_dev_context *bridge_context)
        u32 offset_output;
        u32 total_size;
        u32 poll_cnt;
-       const char *dsp_regs[] = {"EFR", "IERR", "ITSR", "NTSR",
+       static const char * const dsp_regs[] = {"EFR", "IERR", "ITSR", "NTSR",
                                "IRP", "NRP", "AMR", "SSR",
                                "ILC", "RILC", "IER", "CSR"};
-       const char *exec_ctxt[] = {"Task", "SWI", "HWI", "Unknown"};
+       static const char * const exec_ctxt[] = {"Task", "SWI", "HWI",
+                                               "Unknown"};
        struct bridge_drv_interface *intf_fxns;
        struct dev_object *dev_object = bridge_context->dev_obj;