From: Adithya Krishnamurthy Date: Tue, 15 Jul 2014 16:48:18 +0000 (+0530) Subject: Staging:tidspbridge Fix checkpatch.pl warning char * array declaration might be bette... X-Git-Tag: Ubuntu-5.2.0-15.16~13065^2~727^2~2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=c994a4d519b803bb144cbaf962baa8d2ec285421;p=mirror_ubuntu-eoan-kernel.git Staging:tidspbridge Fix checkpatch.pl warning char * array declaration might be better as static const Fixed checkpatch "WARNING: char * array declaration might be better as static const" Signed-off-by: Adithya Krishnamurthy Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/tidspbridge/core/io_sm.c b/drivers/staging/tidspbridge/core/io_sm.c index 42f94e157efd..24bd962e1474 100644 --- a/drivers/staging/tidspbridge/core/io_sm.c +++ b/drivers/staging/tidspbridge/core/io_sm.c @@ -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;