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/rmgr | |
parent | staging: tidspbridge: remove GlobalTypes.h (diff) | |
download | linux-dev-cd4f13c02a5d72e1fc367c51cc0fd955f65538e0.tar.xz linux-dev-cd4f13c02a5d72e1fc367c51cc0fd955f65538e0.zip |
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/rmgr')
-rw-r--r-- | drivers/staging/tidspbridge/rmgr/disp.c | 4 | ||||
-rw-r--r-- | drivers/staging/tidspbridge/rmgr/nldr.c | 4 | ||||
-rw-r--r-- | drivers/staging/tidspbridge/rmgr/node.c | 14 | ||||
-rw-r--r-- | drivers/staging/tidspbridge/rmgr/proc.c | 8 | ||||
-rw-r--r-- | drivers/staging/tidspbridge/rmgr/pwr.c | 4 |
5 files changed, 17 insertions, 17 deletions
diff --git a/drivers/staging/tidspbridge/rmgr/disp.c b/drivers/staging/tidspbridge/rmgr/disp.c index 2aedf0d88c87..56d6429316bd 100644 --- a/drivers/staging/tidspbridge/rmgr/disp.c +++ b/drivers/staging/tidspbridge/rmgr/disp.c @@ -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; diff --git a/drivers/staging/tidspbridge/rmgr/nldr.c b/drivers/staging/tidspbridge/rmgr/nldr.c index 1df1fc4b4960..83b5b6ea6111 100644 --- a/drivers/staging/tidspbridge/rmgr/nldr.c +++ b/drivers/staging/tidspbridge/rmgr/nldr.c @@ -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; diff --git a/drivers/staging/tidspbridge/rmgr/node.c b/drivers/staging/tidspbridge/rmgr/node.c index 6bb65eaa272d..ba18e58df9c5 100644 --- a/drivers/staging/tidspbridge/rmgr/node.c +++ b/drivers/staging/tidspbridge/rmgr/node.c @@ -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; diff --git a/drivers/staging/tidspbridge/rmgr/proc.c b/drivers/staging/tidspbridge/rmgr/proc.c index 79f0c9debf3e..e18c098f2741 100644 --- a/drivers/staging/tidspbridge/rmgr/proc.c +++ b/drivers/staging/tidspbridge/rmgr/proc.c @@ -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; diff --git a/drivers/staging/tidspbridge/rmgr/pwr.c b/drivers/staging/tidspbridge/rmgr/pwr.c index 2d81743a52c0..28845021c467 100644 --- a/drivers/staging/tidspbridge/rmgr/pwr.c +++ b/drivers/staging/tidspbridge/rmgr/pwr.c @@ -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; |