staging: tidspbridge: replace CONST with c standard const
authorMenon, Nishanth <nm@ti.com>
Thu, 22 Jul 2010 21:03:46 +0000 (16:03 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Jul 2010 21:41:04 +0000 (14:41 -0700)
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
32 files changed:
drivers/staging/tidspbridge/core/chnl_sm.c
drivers/staging/tidspbridge/core/io_sm.c
drivers/staging/tidspbridge/core/msg_sm.c
drivers/staging/tidspbridge/core/tiomap3430.c
drivers/staging/tidspbridge/include/dspbridge/chnl.h
drivers/staging/tidspbridge/include/dspbridge/cmm.h
drivers/staging/tidspbridge/include/dspbridge/cod.h
drivers/staging/tidspbridge/include/dspbridge/dev.h
drivers/staging/tidspbridge/include/dspbridge/disp.h
drivers/staging/tidspbridge/include/dspbridge/dmm.h
drivers/staging/tidspbridge/include/dspbridge/dspchnl.h
drivers/staging/tidspbridge/include/dspbridge/dspdefs.h
drivers/staging/tidspbridge/include/dspbridge/dspio.h
drivers/staging/tidspbridge/include/dspbridge/dspmsg.h
drivers/staging/tidspbridge/include/dspbridge/io.h
drivers/staging/tidspbridge/include/dspbridge/nldr.h
drivers/staging/tidspbridge/include/dspbridge/nldrdefs.h
drivers/staging/tidspbridge/include/dspbridge/node.h
drivers/staging/tidspbridge/include/dspbridge/proc.h
drivers/staging/tidspbridge/include/dspbridge/pwr.h
drivers/staging/tidspbridge/pmgr/chnl.c
drivers/staging/tidspbridge/pmgr/cmm.c
drivers/staging/tidspbridge/pmgr/cod.c
drivers/staging/tidspbridge/pmgr/dev.c
drivers/staging/tidspbridge/pmgr/dmm.c
drivers/staging/tidspbridge/pmgr/dspapi.c
drivers/staging/tidspbridge/pmgr/io.c
drivers/staging/tidspbridge/rmgr/disp.c
drivers/staging/tidspbridge/rmgr/nldr.c
drivers/staging/tidspbridge/rmgr/node.c
drivers/staging/tidspbridge/rmgr/proc.c
drivers/staging/tidspbridge/rmgr/pwr.c

index db106f35af33c08b99650c5af3e706faef34cdab..39e96918485703854be84115aebfb3de90104e88 100644 (file)
@@ -383,7 +383,7 @@ func_cont:
  */
 int bridge_chnl_create(OUT struct chnl_mgr **channel_mgr,
                              struct dev_object *hdev_obj,
-                             IN CONST struct chnl_mgrattrs *mgr_attrts)
+                             IN const struct chnl_mgrattrs *mgr_attrts)
 {
        int status = 0;
        struct chnl_mgr *chnl_mgr_obj = NULL;
@@ -777,7 +777,7 @@ int bridge_chnl_idle(struct chnl_object *chnl_obj, u32 timeout,
  */
 int bridge_chnl_open(OUT struct chnl_object **chnl,
                            struct chnl_mgr *hchnl_mgr, s8 chnl_mode,
-                           u32 ch_id, CONST IN struct chnl_attr *pattrs)
+                           u32 ch_id, const IN struct chnl_attr *pattrs)
 {
        int status = 0;
        struct chnl_mgr *chnl_mgr_obj = hchnl_mgr;
index 31b623a909b638c5e36085857b06d6e7af154d79..27f4481d7fe45ec1aaff86a74b14217c16e23baa 100644 (file)
@@ -163,7 +163,7 @@ static int register_shm_segs(struct io_mgr *hio_mgr,
  */
 int bridge_io_create(OUT struct io_mgr **io_man,
                            struct dev_object *hdev_obj,
-                           IN CONST struct io_attrs *mgr_attrts)
+                           IN const struct io_attrs *mgr_attrts)
 {
        int status = 0;
        struct io_mgr *pio_mgr = NULL;
index a86f0ce1c7a174beaddb38eeed69d6bd1c5d8663..6434854e94a43db6ca415a5c6cd1436d2ff56f41 100644 (file)
@@ -383,7 +383,7 @@ func_end:
  *      Put a message onto a msg_ctrl queue.
  */
 int bridge_msg_put(struct msg_queue *msg_queue_obj,
-                         IN CONST struct dsp_msg *pmsg, u32 utimeout)
+                         IN const struct dsp_msg *pmsg, u32 utimeout)
 {
        struct msg_frame *msg_frame_obj;
        struct msg_mgr *hmsg_mgr;
index 745e1a5d58e805e4ff31a373d05f0b6de2f3deca..428389b0e195557997ef2675cd3ac8f733eda7ca 100644 (file)
@@ -237,7 +237,7 @@ static void bad_page_dump(u32 pa, struct page *pg)
  *      Bridge Driver entry point.
  */
 void bridge_drv_entry(OUT struct bridge_drv_interface **drv_intf,
-                  IN CONST char *driver_file_name)
+                  IN const char *driver_file_name)
 {
 
        DBC_REQUIRE(driver_file_name != NULL);
index 4c2020c9f94c30b0813b01726964dbe43deb533c..96262a31c981ba98701008bbfed7f0d5313a2698 100644 (file)
@@ -79,7 +79,7 @@ extern int chnl_close(struct chnl_object *chnl_obj);
  */
 extern int chnl_create(OUT struct chnl_mgr **channel_mgr,
                              struct dev_object *hdev_obj,
-                             IN CONST struct chnl_mgrattrs *mgr_attrts);
+                             IN const struct chnl_mgrattrs *mgr_attrts);
 
 /*
  *  ======== chnl_destroy ========
index 24423cd62c008b814d895a39477ca65dcdc65c22..a30078d8332c0aa1f9d7969f8e13535631943d5f 100644 (file)
@@ -87,7 +87,7 @@ extern void *cmm_calloc_buf(struct cmm_object *hcmm_mgr,
  */
 extern int cmm_create(OUT struct cmm_object **ph_cmm_mgr,
                             struct dev_object *hdev_obj,
-                            IN CONST struct cmm_mgrattrs *mgr_attrts);
+                            IN const struct cmm_mgrattrs *mgr_attrts);
 
 /*
  *  ======== cmm_destroy ========
index abf3b38dd392c2dcd3442af1f0c2d2610e3d3508..3c88304603166ade0b2a007cd9bc0fa372a7869f 100644 (file)
@@ -93,7 +93,7 @@ extern void cod_close(struct cod_libraryobj *lib);
  */
 extern int cod_create(OUT struct cod_manager **mgr,
                             char *str_zl_file,
-                            IN OPTIONAL CONST struct cod_attrs *attrs);
+                            IN OPTIONAL const struct cod_attrs *attrs);
 
 /*
  *  ======== cod_delete ========
index aa894192487674a1a82a5bbfbb6bbb9bc03563e7..94ea4468354747c4201a1cc57e92359a8c784128 100644 (file)
@@ -91,7 +91,7 @@ extern u32 dev_brd_write_fxn(void *arb,
  */
 extern int dev_create_device(OUT struct dev_object
                                    **device_obj,
-                                   IN CONST char *driver_file_name,
+                                   IN const char *driver_file_name,
                                    struct cfg_devnode *dev_node_obj);
 
 /*
@@ -126,8 +126,8 @@ extern int dev_create_device(OUT struct dev_object
  */
 extern int dev_create_iva_device(OUT struct dev_object
                                        **device_obj,
-                                       IN CONST char *driver_file_name,
-                                       IN CONST struct cfg_hostres
+                                       IN const char *driver_file_name,
+                                       IN const struct cfg_hostres
                                        *host_config,
                                        struct cfg_devnode *dev_node_obj);
 
@@ -490,7 +490,7 @@ extern int dev_get_node_manager(struct dev_object
  *      0:        *pul_value contains the symbol value;
  */
 extern int dev_get_symbol(struct dev_object *hdev_obj,
-                                IN CONST char *str_sym, OUT u32 * pul_value);
+                                IN const char *str_sym, OUT u32 * pul_value);
 
 /*
  *  ======== dev_get_bridge_context ========
index 77fc92e8323142ce5582c4206c6429770086a0e6..f89b6249849d2efe547c4e3f1d0e9fc54c663b1d 100644 (file)
@@ -50,7 +50,7 @@
  */
 extern int disp_create(OUT struct disp_object **dispatch_obj,
                              struct dev_object *hdev_obj,
-                             IN CONST struct disp_attr *disp_attrs);
+                             IN const struct disp_attr *disp_attrs);
 
 /*
  *  ======== disp_delete ========
@@ -147,7 +147,7 @@ extern int disp_node_create(struct disp_object *disp_obj,
                                   struct node_object *hnode,
                                   u32 rms_fxn,
                                   u32 ul_create_fxn,
-                                  IN CONST struct node_createargs
+                                  IN const struct node_createargs
                                   *pargs, OUT nodeenv *node_env);
 
 /*
index 8c9a3d46bf66054494c1e5652425370403752de4..6f5b18a6cbb64568f4ae253c48a59ee73b729718 100644 (file)
@@ -59,7 +59,7 @@ extern int dmm_delete_tables(struct dmm_object *dmm_mgr);
 
 extern int dmm_create(OUT struct dmm_object **dmm_manager,
                             struct dev_object *hdev_obj,
-                            IN CONST struct dmm_mgrattrs *mgr_attrts);
+                            IN const struct dmm_mgrattrs *mgr_attrts);
 
 extern bool dmm_init(void);
 
index c08cc00ab1235aa5ddd5c47e08c3c1e9ff942a91..d8eaf450a9c615902266fa63711272b9b64618b5 100644 (file)
@@ -26,7 +26,7 @@
 
 extern int bridge_chnl_create(OUT struct chnl_mgr **channel_mgr,
                                     struct dev_object *hdev_obj,
-                                    IN CONST struct chnl_mgrattrs
+                                    IN const struct chnl_mgrattrs
                                     *mgr_attrts);
 
 extern int bridge_chnl_destroy(struct chnl_mgr *hchnl_mgr);
@@ -35,7 +35,7 @@ extern int bridge_chnl_open(OUT struct chnl_object **chnl,
                                   struct chnl_mgr *hchnl_mgr,
                                   s8 chnl_mode,
                                   u32 ch_id,
-                                  CONST IN OPTIONAL struct chnl_attr
+                                  const IN OPTIONAL struct chnl_attr
                                   *pattrs);
 
 extern int bridge_chnl_close(struct chnl_object *chnl_obj);
index f2830fe4f9ee9f8d3e5cb1d8b185847c282223e7..358c523c2f47f8ea297eef8268d8cfee2232acd1 100644 (file)
@@ -327,7 +327,7 @@ typedef int(*fxn_chnl_create) (OUT struct chnl_mgr
                                      **channel_mgr,
                                      struct dev_object
                                      * hdev_obj,
-                                     IN CONST struct
+                                     IN const struct
                                      chnl_mgrattrs * mgr_attrts);
 
 /*
@@ -412,7 +412,7 @@ typedef int(*fxn_chnl_open) (OUT struct chnl_object
                                    struct chnl_mgr *hchnl_mgr,
                                    s8 chnl_mode,
                                    u32 ch_id,
-                                   CONST IN OPTIONAL struct
+                                   const IN OPTIONAL struct
                                    chnl_attr * pattrs);
 
 /*
@@ -746,7 +746,7 @@ typedef int(*fxn_dev_destroy) (struct bridge_dev_context *dev_ctxt);
  */
 typedef int(*fxn_io_create) (OUT struct io_mgr **io_man,
                                    struct dev_object *hdev_obj,
-                                   IN CONST struct io_attrs *mgr_attrts);
+                                   IN const struct io_attrs *mgr_attrts);
 
 /*
  *  ======== bridge_io_destroy ========
@@ -916,7 +916,7 @@ typedef int(*fxn_msg_get) (struct msg_queue *msg_queue_obj,
  *  Ensures:
  */
 typedef int(*fxn_msg_put) (struct msg_queue *msg_queue_obj,
-                                 IN CONST struct dsp_msg *pmsg, u32 utimeout);
+                                 IN const struct dsp_msg *pmsg, u32 utimeout);
 
 /*
  *  ======== bridge_msg_register_notify ========
@@ -1049,6 +1049,6 @@ struct bridge_drv_interface {
  *      Called during the Device_Init phase.
  */
 void bridge_drv_entry(OUT struct bridge_drv_interface **drv_intf,
-                  IN CONST char *driver_file_name);
+                  IN const char *driver_file_name);
 
 #endif /* DSPDEFS_ */
index 2b9e19c25c749defb8ebe0ffef29ebef5f673413..304adab7be8851639302826fd4b6e9cf5614df5f 100644 (file)
@@ -28,7 +28,7 @@
 
 extern int bridge_io_create(OUT struct io_mgr **io_man,
                                   struct dev_object *hdev_obj,
-                                  IN CONST struct io_attrs *mgr_attrts);
+                                  IN const struct io_attrs *mgr_attrts);
 
 extern int bridge_io_destroy(struct io_mgr *hio_mgr);
 
index 6a6c4bf1684d5c633169ae2e54b5374660bd9139..74cd9805f76aa6ebff1a9d4d0f6b49cbb510d2b5 100644 (file)
@@ -42,7 +42,7 @@ extern int bridge_msg_get(struct msg_queue *msg_queue_obj,
                                 struct dsp_msg *pmsg, u32 utimeout);
 
 extern int bridge_msg_put(struct msg_queue *msg_queue_obj,
-                                IN CONST struct dsp_msg *pmsg, u32 utimeout);
+                                IN const struct dsp_msg *pmsg, u32 utimeout);
 
 extern int bridge_msg_register_notify(struct msg_queue *msg_queue_obj,
                                          u32 event_mask,
index b8670cabb17cd21915805f45b1aec78755e11531..927e5849e8e651bd5b7f9105d94f22e4a852796b 100644 (file)
@@ -51,7 +51,7 @@
  */
 extern int io_create(OUT struct io_mgr **io_man,
                            struct dev_object *hdev_obj,
-                           IN CONST struct io_attrs *mgr_attrts);
+                           IN const struct io_attrs *mgr_attrts);
 
 /*
  *  ======== io_destroy ========
index 986ebc80d8972cab05a9355502bc05f7b6d418be..4b10f13734a7beac4b75f4dbc531ea7cb5b69d6b 100644 (file)
 #define NLDR_
 
 extern int nldr_allocate(struct nldr_object *nldr_obj,
-                               void *priv_ref, IN CONST struct dcd_nodeprops
+                               void *priv_ref, IN const struct dcd_nodeprops
                                *node_props,
                                OUT struct nldr_nodeobject **nldr_nodeobj,
                                IN bool *pf_phase_split);
 
 extern int nldr_create(OUT struct nldr_object **nldr,
                              struct dev_object *hdev_obj,
-                             IN CONST struct nldr_attrs *pattrs);
+                             IN const struct nldr_attrs *pattrs);
 
 extern void nldr_delete(struct nldr_object *nldr_obj);
 extern void nldr_exit(void);
index 9d3511480304f8c8b3559f95c603c5a813ab4fee..403a4f3d59af624cd0ee572dddb59c60e6e0e303 100644 (file)
@@ -129,7 +129,7 @@ enum nldr_phase {
  */
 typedef int(*nldr_allocatefxn) (struct nldr_object *nldr_obj,
                                       void *priv_ref,
-                                      IN CONST struct dcd_nodeprops
+                                      IN const struct dcd_nodeprops
                                       * node_props,
                                       OUT struct nldr_nodeobject
                                       **nldr_nodeobj,
@@ -158,7 +158,7 @@ typedef int(*nldr_allocatefxn) (struct nldr_object *nldr_obj,
  */
 typedef int(*nldr_createfxn) (OUT struct nldr_object **nldr,
                                     struct dev_object *hdev_obj,
-                                    IN CONST struct nldr_attrs *pattrs);
+                                    IN const struct nldr_attrs *pattrs);
 
 /*
  *  ======== nldr_delete ========
index d933b274031e4814e07cb3346e060852b9e389ad..1ee268c711248330ae2e28c067197fce8c656ba9 100644 (file)
@@ -56,9 +56,9 @@
  *      error:              *ph_node == NULL.
  */
 extern int node_allocate(struct proc_object *hprocessor,
-                               IN CONST struct dsp_uuid *node_uuid,
-                               OPTIONAL IN CONST struct dsp_cbdata
-                               *pargs, OPTIONAL IN CONST struct dsp_nodeattrin
+                               IN const struct dsp_uuid *node_uuid,
+                               OPTIONAL IN const struct dsp_cbdata
+                               *pargs, OPTIONAL IN const struct dsp_nodeattrin
                                *attr_in,
                                OUT struct node_object **ph_node,
                                struct process_context *pr_ctxt);
@@ -470,7 +470,7 @@ extern int node_pause(struct node_object *hnode);
  *  Ensures:
  */
 extern int node_put_message(struct node_object *hnode,
-                                  IN CONST struct dsp_msg *pmsg, u32 utimeout);
+                                  IN const struct dsp_msg *pmsg, u32 utimeout);
 
 /*
  *  ======== node_register_notify ========
@@ -554,7 +554,7 @@ extern int node_terminate(struct node_object *hnode,
  *
  */
 extern int node_get_uuid_props(void *hprocessor,
-                                     IN CONST struct dsp_uuid *node_uuid,
+                                     IN const struct dsp_uuid *node_uuid,
                                      OUT struct dsp_ndbprops
                                      *node_props);
 
index f91f11fe7c8b836620b1ce3631dae7c6e6304909..6668f25cda48a7d0453d51968f2e6b2a3f9d097f 100644 (file)
@@ -52,7 +52,7 @@ extern char *iva_img;
  *      When attr_in is NULL, the default timeout value is 10 seconds.
  */
 extern int proc_attach(u32 processor_id,
-                             OPTIONAL CONST struct dsp_processorattrin
+                             OPTIONAL const struct dsp_processorattrin
                              *attr_in, void **ph_processor,
                              struct process_context *pr_ctxt);
 
@@ -329,8 +329,8 @@ extern int proc_get_trace(void *hprocessor, u8 * pbuf, u32 max_size);
  *      can load the processor.
  */
 extern int proc_load(void *hprocessor,
-                           IN CONST s32 argc_index, IN CONST char **user_args,
-                           IN CONST char **user_envp);
+                           IN const s32 argc_index, IN const char **user_args,
+                           IN const char **user_envp);
 
 /*
  *  ======== proc_register_notify ========
index 9f32c896a840500b19a7a804afa7a4e031d57987..b42579246a015770c3312437d0acd7bf9c790ae8 100644 (file)
@@ -45,7 +45,7 @@
  *      -EPERM:          General failure, unable to send sleep command to
  *                          the DSP.
  */
-extern int pwr_sleep_dsp(IN CONST u32 sleep_code, IN CONST u32 timeout);
+extern int pwr_sleep_dsp(IN const u32 sleep_code, IN const u32 timeout);
 
 /*
  *  ======== pwr_wake_dsp ========
@@ -66,7 +66,7 @@ extern int pwr_sleep_dsp(IN CONST u32 sleep_code, IN CONST u32 timeout);
  *      -EPERM:          General failure, unable to send wake command to
  *                          the DSP.
  */
-extern int pwr_wake_dsp(IN CONST u32 timeout);
+extern int pwr_wake_dsp(IN const u32 timeout);
 
 /*
  *  ======== pwr_pm_pre_scale ========
index b7ec75121d7e9267d670f8ad481e6512a2db78ea..fc99927f3eec59f4de94a9a634109e074f581f4b 100644 (file)
@@ -53,7 +53,7 @@ static u32 refs;
  */
 int chnl_create(OUT struct chnl_mgr **channel_mgr,
                       struct dev_object *hdev_obj,
-                      IN CONST struct chnl_mgrattrs *mgr_attrts)
+                      IN const struct chnl_mgrattrs *mgr_attrts)
 {
        int status;
        struct chnl_mgr *hchnl_mgr;
index ca705da7ce13394b2b1d1a1200c469f10d51c5e1..36ba9cb8f8b775acb2521c14b63377b32d5b08a2 100644 (file)
@@ -242,7 +242,7 @@ void *cmm_calloc_buf(struct cmm_object *hcmm_mgr, u32 usize,
  */
 int cmm_create(OUT struct cmm_object **ph_cmm_mgr,
                      struct dev_object *hdev_obj,
-                     IN CONST struct cmm_mgrattrs *mgr_attrts)
+                     IN const struct cmm_mgrattrs *mgr_attrts)
 {
        struct cmm_object *cmm_obj = NULL;
        int status = 0;
index f324130b640d11665ed5efee631d7fae408bd970..bf8c909089f9eb894f8c0811ed80c5e045521807 100644 (file)
@@ -110,7 +110,7 @@ static s32 cod_f_close(struct file *filp)
        return 0;
 }
 
-static struct file *cod_f_open(CONST char *psz_file_name, CONST char *sz_mode)
+static struct file *cod_f_open(const char *psz_file_name, const char *sz_mode)
 {
        mm_segment_t fs;
        struct file *filp;
@@ -217,7 +217,7 @@ void cod_close(struct cod_libraryobj *lib)
  *
  */
 int cod_create(OUT struct cod_manager **mgr, char *str_zl_file,
-                     IN OPTIONAL CONST struct cod_attrs *attrs)
+                     IN OPTIONAL const struct cod_attrs *attrs)
 {
        struct cod_manager *mgr_new;
        struct dbll_attrs zl_attrs;
index 31ff15d0e1d63ff628b708e8d1f52a821f548e91..c726cf861e614037537de2d8cb60f119310fa953 100644 (file)
@@ -132,7 +132,7 @@ u32 dev_brd_write_fxn(void *arb, u32 dsp_add, void *host_buf,
  *      PM board (device).
  */
 int dev_create_device(OUT struct dev_object **device_obj,
-                            IN CONST char *driver_file_name,
+                            IN const char *driver_file_name,
                             struct cfg_devnode *dev_node_obj)
 {
        struct cfg_hostres *host_res;
@@ -691,7 +691,7 @@ int dev_get_node_manager(struct dev_object *hdev_obj,
  *  ======== dev_get_symbol ========
  */
 int dev_get_symbol(struct dev_object *hdev_obj,
-                         IN CONST char *str_sym, OUT u32 * pul_value)
+                         IN const char *str_sym, OUT u32 * pul_value)
 {
        int status = 0;
        struct cod_manager *cod_mgr;
index 2d8c9e294e1169ede03e17100c2f15cfcd444f7f..592b5e73f3d7d751f211dcc3a52bbc1c7fefe228 100644 (file)
@@ -119,7 +119,7 @@ int dmm_create_tables(struct dmm_object *dmm_mgr, u32 addr, u32 size)
  */
 int dmm_create(OUT struct dmm_object **dmm_manager,
                      struct dev_object *hdev_obj,
-                     IN CONST struct dmm_mgrattrs *mgr_attrts)
+                     IN const struct dmm_mgrattrs *mgr_attrts)
 {
        struct dmm_object *dmm_obj = NULL;
        int status = 0;
index 57abe3322c6f97b66b1bef7db65a4ab25c701bfa..f171567047c08a053c6754dec15878f258ffac4d 100644 (file)
@@ -905,7 +905,7 @@ u32 procwrap_load(union trapped_args *args, void *pr_ctxt)
        if (DSP_SUCCEEDED(status)) {
                status = proc_load(args->args_proc_load.hprocessor,
                                   args->args_proc_load.argc_index,
-                                  (CONST char **)argv, (CONST char **)envp);
+                                  (const char **)argv, (const char **)envp);
        }
 func_cont:
        if (envp) {
index 96ff8ad223fe71910cb82fb0f7eadd397b6c36fe..c422bb44711b073fde9c6c532622a50443d81363 100644 (file)
@@ -47,7 +47,7 @@ static u32 refs;
  *      CHNL and msg_ctrl
  */
 int io_create(OUT struct io_mgr **io_man, struct dev_object *hdev_obj,
-                    IN CONST struct io_attrs *mgr_attrts)
+                    IN const struct io_attrs *mgr_attrts)
 {
        struct bridge_drv_interface *intf_fxns;
        struct io_mgr *hio_mgr = NULL;
index 2aedf0d88c87e968db964cdf8f2dd58287060d73..56d6429316bdf31f197a8c38b529df1761100700 100644 (file)
@@ -89,7 +89,7 @@ static int send_message(struct disp_object *disp_obj, u32 timeout,
  */
 int disp_create(OUT struct disp_object **dispatch_obj,
                       struct dev_object *hdev_obj,
-                      IN CONST struct disp_attr *disp_attrs)
+                      IN const struct disp_attr *disp_attrs)
 {
        struct disp_object *disp_obj;
        struct bridge_drv_interface *intf_fxns;
@@ -251,7 +251,7 @@ int disp_node_change_priority(struct disp_object *disp_obj,
 int disp_node_create(struct disp_object *disp_obj,
                            struct node_object *hnode, u32 rms_fxn,
                            u32 ul_create_fxn,
-                           IN CONST struct node_createargs *pargs,
+                           IN const struct node_createargs *pargs,
                            OUT nodeenv *node_env)
 {
        struct node_msgargs node_msg_args;
index 1df1fc4b49604b9ac64bd850c6108a8a81cde181..83b5b6ea6111ba9b7745f229f0c15166fb1ad237 100644 (file)
@@ -325,7 +325,7 @@ static u32 find_gcf(u32 a, u32 b);
  *  ======== nldr_allocate ========
  */
 int nldr_allocate(struct nldr_object *nldr_obj, void *priv_ref,
-                        IN CONST struct dcd_nodeprops *node_props,
+                        IN const struct dcd_nodeprops *node_props,
                         OUT struct nldr_nodeobject **nldr_nodeobj,
                         IN bool *pf_phase_split)
 {
@@ -427,7 +427,7 @@ int nldr_allocate(struct nldr_object *nldr_obj, void *priv_ref,
  */
 int nldr_create(OUT struct nldr_object **nldr,
                       struct dev_object *hdev_obj,
-                      IN CONST struct nldr_attrs *pattrs)
+                      IN const struct nldr_attrs *pattrs)
 {
        struct cod_manager *cod_mgr;    /* COD manager */
        char *psz_coff_buf = NULL;
index 6bb65eaa272dab3fc4a5ea93b3cd914cc0e0e1bf..ba18e58df9c53323df15cbff676ad3fac197f138 100644 (file)
@@ -252,7 +252,7 @@ static int get_fxn_address(struct node_object *hnode, u32 * fxn_addr,
                                  u32 phase);
 static int get_node_props(struct dcd_manager *hdcd_mgr,
                                 struct node_object *hnode,
-                                CONST struct dsp_uuid *node_uuid,
+                                const struct dsp_uuid *node_uuid,
                                 struct dcd_genericobj *dcd_prop);
 static int get_proc_props(struct node_mgr *hnode_mgr,
                                 struct dev_object *hdev_obj);
@@ -291,9 +291,9 @@ enum node_state node_get_state(void *hnode)
  *      Allocate GPP resources to manage a node on the DSP.
  */
 int node_allocate(struct proc_object *hprocessor,
-                        IN CONST struct dsp_uuid *node_uuid,
-                        OPTIONAL IN CONST struct dsp_cbdata *pargs,
-                        OPTIONAL IN CONST struct dsp_nodeattrin *attr_in,
+                        IN const struct dsp_uuid *node_uuid,
+                        OPTIONAL IN const struct dsp_cbdata *pargs,
+                        OPTIONAL IN const struct dsp_nodeattrin *attr_in,
                         OUT struct node_object **ph_node,
                         struct process_context *pr_ctxt)
 {
@@ -2094,7 +2094,7 @@ func_end:
  *      message, or a timeout occurs.
  */
 int node_put_message(struct node_object *hnode,
-                           IN CONST struct dsp_msg *pmsg, u32 utimeout)
+                           IN const struct dsp_msg *pmsg, u32 utimeout)
 {
        struct node_mgr *hnode_mgr = NULL;
        enum node_type node_type;
@@ -2888,7 +2888,7 @@ void get_node_info(struct node_object *hnode, struct dsp_nodeinfo *node_info)
  */
 static int get_node_props(struct dcd_manager *hdcd_mgr,
                                 struct node_object *hnode,
-                                CONST struct dsp_uuid *node_uuid,
+                                const struct dsp_uuid *node_uuid,
                                 struct dcd_genericobj *dcd_prop)
 {
        u32 len;
@@ -3004,7 +3004,7 @@ static int get_proc_props(struct node_mgr *hnode_mgr,
  *      Fetch Node UUID properties from DCD/DOF file.
  */
 int node_get_uuid_props(void *hprocessor,
-                              IN CONST struct dsp_uuid *node_uuid,
+                              IN const struct dsp_uuid *node_uuid,
                               OUT struct dsp_ndbprops *node_props)
 {
        struct node_mgr *hnode_mgr = NULL;
index 79f0c9debf3e626942e5f49aa7599d7d5a2f6a23..e18c098f27411fc13c6b9efca5416e2a9f0667ae 100644 (file)
@@ -272,7 +272,7 @@ static inline struct page *get_mapping_page(struct dmm_map_object *map_obj,
  */
 int
 proc_attach(u32 processor_id,
-           OPTIONAL CONST struct dsp_processorattrin *attr_in,
+           OPTIONAL const struct dsp_processorattrin *attr_in,
            void **ph_processor, struct process_context *pr_ctxt)
 {
        int status = 0;
@@ -469,7 +469,7 @@ int proc_auto_start(struct cfg_devnode *dev_node_obj,
                argv[0] = sz_exec_file;
                argv[1] = NULL;
                /* ...and try to load it: */
-               status = proc_load(p_proc_object, 1, (CONST char **)argv, NULL);
+               status = proc_load(p_proc_object, 1, (const char **)argv, NULL);
                if (DSP_SUCCEEDED(status))
                        status = proc_start(p_proc_object);
        }
@@ -1055,8 +1055,8 @@ bool proc_init(void)
  *      This will be an OEM-only function, and not part of the DSP/BIOS Bridge
  *      application developer's API.
  */
-int proc_load(void *hprocessor, IN CONST s32 argc_index,
-                    IN CONST char **user_args, IN CONST char **user_envp)
+int proc_load(void *hprocessor, IN const s32 argc_index,
+                    IN const char **user_args, IN const char **user_envp)
 {
        int status = 0;
        struct proc_object *p_proc_object = (struct proc_object *)hprocessor;
index 2d81743a52c0334db834a6b9f267bb05022ab5d0..28845021c4677de999a4bc451c941e48bdf05c6f 100644 (file)
@@ -36,7 +36,7 @@
  *  ======== pwr_sleep_dsp ========
  *    Send command to DSP to enter sleep state.
  */
-int pwr_sleep_dsp(IN CONST u32 sleep_code, IN CONST u32 timeout)
+int pwr_sleep_dsp(IN const u32 sleep_code, IN const u32 timeout)
 {
        struct bridge_drv_interface *intf_fxns;
        struct bridge_dev_context *dw_context;
@@ -79,7 +79,7 @@ int pwr_sleep_dsp(IN CONST u32 sleep_code, IN CONST u32 timeout)
  *  ======== pwr_wake_dsp ========
  *    Send command to DSP to wake it from sleep.
  */
-int pwr_wake_dsp(IN CONST u32 timeout)
+int pwr_wake_dsp(IN const u32 timeout)
 {
        struct bridge_drv_interface *intf_fxns;
        struct bridge_dev_context *dw_context;