diff options
author | Menon, Nishanth <nm@ti.com> | 2010-07-22 16:03:46 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-07-22 14:41:04 -0700 |
commit | cd4f13c02a5d72e1fc367c51cc0fd955f65538e0 (patch) | |
tree | 352dc920ae393add913c0fb6476940a17eb04b37 /drivers/staging/tidspbridge/include | |
parent | 38bf20a9b6d6416563f0a261e90fa7081e273dfa (diff) |
staging: tidspbridge: replace CONST with c standard const
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/tidspbridge/include')
16 files changed, 34 insertions, 34 deletions
diff --git a/drivers/staging/tidspbridge/include/dspbridge/chnl.h b/drivers/staging/tidspbridge/include/dspbridge/chnl.h index 4c2020c9f94c..96262a31c981 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/chnl.h +++ b/drivers/staging/tidspbridge/include/dspbridge/chnl.h @@ -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 ======== diff --git a/drivers/staging/tidspbridge/include/dspbridge/cmm.h b/drivers/staging/tidspbridge/include/dspbridge/cmm.h index 24423cd62c00..a30078d8332c 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/cmm.h +++ b/drivers/staging/tidspbridge/include/dspbridge/cmm.h @@ -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 ======== diff --git a/drivers/staging/tidspbridge/include/dspbridge/cod.h b/drivers/staging/tidspbridge/include/dspbridge/cod.h index abf3b38dd392..3c8830460316 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/cod.h +++ b/drivers/staging/tidspbridge/include/dspbridge/cod.h @@ -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 ======== diff --git a/drivers/staging/tidspbridge/include/dspbridge/dev.h b/drivers/staging/tidspbridge/include/dspbridge/dev.h index aa8941924876..94ea44683547 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/dev.h +++ b/drivers/staging/tidspbridge/include/dspbridge/dev.h @@ -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 ======== diff --git a/drivers/staging/tidspbridge/include/dspbridge/disp.h b/drivers/staging/tidspbridge/include/dspbridge/disp.h index 77fc92e83231..f89b6249849d 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/disp.h +++ b/drivers/staging/tidspbridge/include/dspbridge/disp.h @@ -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); /* diff --git a/drivers/staging/tidspbridge/include/dspbridge/dmm.h b/drivers/staging/tidspbridge/include/dspbridge/dmm.h index 8c9a3d46bf66..6f5b18a6cbb6 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/dmm.h +++ b/drivers/staging/tidspbridge/include/dspbridge/dmm.h @@ -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); diff --git a/drivers/staging/tidspbridge/include/dspbridge/dspchnl.h b/drivers/staging/tidspbridge/include/dspbridge/dspchnl.h index c08cc00ab123..d8eaf450a9c6 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/dspchnl.h +++ b/drivers/staging/tidspbridge/include/dspbridge/dspchnl.h @@ -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); diff --git a/drivers/staging/tidspbridge/include/dspbridge/dspdefs.h b/drivers/staging/tidspbridge/include/dspbridge/dspdefs.h index f2830fe4f9ee..358c523c2f47 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/dspdefs.h +++ b/drivers/staging/tidspbridge/include/dspbridge/dspdefs.h @@ -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_ */ diff --git a/drivers/staging/tidspbridge/include/dspbridge/dspio.h b/drivers/staging/tidspbridge/include/dspbridge/dspio.h index 2b9e19c25c74..304adab7be88 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/dspio.h +++ b/drivers/staging/tidspbridge/include/dspbridge/dspio.h @@ -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); diff --git a/drivers/staging/tidspbridge/include/dspbridge/dspmsg.h b/drivers/staging/tidspbridge/include/dspbridge/dspmsg.h index 6a6c4bf1684d..74cd9805f76a 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/dspmsg.h +++ b/drivers/staging/tidspbridge/include/dspbridge/dspmsg.h @@ -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, diff --git a/drivers/staging/tidspbridge/include/dspbridge/io.h b/drivers/staging/tidspbridge/include/dspbridge/io.h index b8670cabb17c..927e5849e8e6 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/io.h +++ b/drivers/staging/tidspbridge/include/dspbridge/io.h @@ -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 ======== diff --git a/drivers/staging/tidspbridge/include/dspbridge/nldr.h b/drivers/staging/tidspbridge/include/dspbridge/nldr.h index 986ebc80d897..4b10f13734a7 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/nldr.h +++ b/drivers/staging/tidspbridge/include/dspbridge/nldr.h @@ -26,14 +26,14 @@ #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); diff --git a/drivers/staging/tidspbridge/include/dspbridge/nldrdefs.h b/drivers/staging/tidspbridge/include/dspbridge/nldrdefs.h index 9d3511480304..403a4f3d59af 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/nldrdefs.h +++ b/drivers/staging/tidspbridge/include/dspbridge/nldrdefs.h @@ -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 ======== diff --git a/drivers/staging/tidspbridge/include/dspbridge/node.h b/drivers/staging/tidspbridge/include/dspbridge/node.h index d933b274031e..1ee268c71124 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/node.h +++ b/drivers/staging/tidspbridge/include/dspbridge/node.h @@ -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); diff --git a/drivers/staging/tidspbridge/include/dspbridge/proc.h b/drivers/staging/tidspbridge/include/dspbridge/proc.h index f91f11fe7c8b..6668f25cda48 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/proc.h +++ b/drivers/staging/tidspbridge/include/dspbridge/proc.h @@ -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 ======== diff --git a/drivers/staging/tidspbridge/include/dspbridge/pwr.h b/drivers/staging/tidspbridge/include/dspbridge/pwr.h index 9f32c896a840..b42579246a01 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/pwr.h +++ b/drivers/staging/tidspbridge/include/dspbridge/pwr.h @@ -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 ======== |