diff options
author | 2010-07-22 16:03:47 -0500 | |
---|---|---|
committer | 2010-07-22 14:41:04 -0700 | |
commit | 9d7d0a526193359b5289d933768e7465d9bbd91e (patch) | |
tree | b9c88803601f23ef68bc75f3e5c2f793b6780b5e /drivers/staging/tidspbridge/core | |
parent | staging: tidspbridge: replace CONST with c standard const (diff) | |
download | linux-dev-9d7d0a526193359b5289d933768e7465d9bbd91e.tar.xz linux-dev-9d7d0a526193359b5289d933768e7465d9bbd91e.zip |
staging: tidspbridge: remove IN modifier
IN modifier does not exist. remove it
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/tidspbridge/core')
-rw-r--r-- | drivers/staging/tidspbridge/core/_tiomap_pwr.h | 14 | ||||
-rw-r--r-- | drivers/staging/tidspbridge/core/chnl_sm.c | 4 | ||||
-rw-r--r-- | drivers/staging/tidspbridge/core/dsp-clock.c | 4 | ||||
-rw-r--r-- | drivers/staging/tidspbridge/core/io_sm.c | 20 | ||||
-rw-r--r-- | drivers/staging/tidspbridge/core/msg_sm.c | 2 | ||||
-rw-r--r-- | drivers/staging/tidspbridge/core/tiomap3430.c | 18 | ||||
-rw-r--r-- | drivers/staging/tidspbridge/core/tiomap3430_pwr.c | 14 | ||||
-rw-r--r-- | drivers/staging/tidspbridge/core/tiomap_io.c | 4 | ||||
-rw-r--r-- | drivers/staging/tidspbridge/core/tiomap_io.h | 10 |
9 files changed, 45 insertions, 45 deletions
diff --git a/drivers/staging/tidspbridge/core/_tiomap_pwr.h b/drivers/staging/tidspbridge/core/_tiomap_pwr.h index 47c4dd2c2b5a..bd0354d9ad03 100644 --- a/drivers/staging/tidspbridge/core/_tiomap_pwr.h +++ b/drivers/staging/tidspbridge/core/_tiomap_pwr.h @@ -30,27 +30,27 @@ extern struct mailbox_context mboxsetting; * Wakes up the DSP from DeepSleep */ extern int wake_dsp(struct bridge_dev_context *dev_context, - IN void *pargs); + void *pargs); /* * ======== sleep_dsp ========= * Places the DSP in DeepSleep. */ extern int sleep_dsp(struct bridge_dev_context *dev_context, - IN u32 dw_cmd, IN void *pargs); + u32 dw_cmd, void *pargs); /* * ========interrupt_dsp======== * Sends an interrupt to DSP unconditionally. */ extern void interrupt_dsp(struct bridge_dev_context *dev_context, - IN u16 mb_val); + u16 mb_val); /* * ======== wake_dsp ========= * Wakes up the DSP from DeepSleep */ extern int dsp_peripheral_clk_ctrl(struct bridge_dev_context - *dev_context, IN void *pargs); + *dev_context, void *pargs); /* * ======== handle_hibernation_from_dsp ======== * Handle Hibernation requested from DSP @@ -61,19 +61,19 @@ int handle_hibernation_from_dsp(struct bridge_dev_context *dev_context); * Handle Post Scale notification to DSP */ int post_scale_dsp(struct bridge_dev_context *dev_context, - IN void *pargs); + void *pargs); /* * ======== pre_scale_dsp ======== * Handle Pre Scale notification to DSP */ int pre_scale_dsp(struct bridge_dev_context *dev_context, - IN void *pargs); + void *pargs); /* * ======== handle_constraints_set ======== * Handle constraints request from DSP */ int handle_constraints_set(struct bridge_dev_context *dev_context, - IN void *pargs); + void *pargs); /* * ======== dsp_clk_wakeup_event_ctrl ======== diff --git a/drivers/staging/tidspbridge/core/chnl_sm.c b/drivers/staging/tidspbridge/core/chnl_sm.c index 39e969184857..01d4a221dad8 100644 --- a/drivers/staging/tidspbridge/core/chnl_sm.c +++ b/drivers/staging/tidspbridge/core/chnl_sm.c @@ -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) + 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 struct chnl_attr *pattrs) { int status = 0; struct chnl_mgr *chnl_mgr_obj = hchnl_mgr; diff --git a/drivers/staging/tidspbridge/core/dsp-clock.c b/drivers/staging/tidspbridge/core/dsp-clock.c index 6f9ea059974e..b474e833d1ae 100644 --- a/drivers/staging/tidspbridge/core/dsp-clock.c +++ b/drivers/staging/tidspbridge/core/dsp-clock.c @@ -239,7 +239,7 @@ void dsp_gpt_wait_overflow(short int clk_id, unsigned int load) * Enable Clock . * */ -int dsp_clk_enable(IN enum dsp_clk_id clk_id) +int dsp_clk_enable(enum dsp_clk_id clk_id) { int status = 0; @@ -317,7 +317,7 @@ u32 dsp_clock_enable_all(u32 dsp_per_clocks) * Disable the clock. * */ -int dsp_clk_disable(IN enum dsp_clk_id clk_id) +int dsp_clk_disable(enum dsp_clk_id clk_id) { int status = 0; diff --git a/drivers/staging/tidspbridge/core/io_sm.c b/drivers/staging/tidspbridge/core/io_sm.c index 27f4481d7fe4..06b47ca6e096 100644 --- a/drivers/staging/tidspbridge/core/io_sm.c +++ b/drivers/staging/tidspbridge/core/io_sm.c @@ -132,9 +132,9 @@ struct io_mgr { }; /* Function Prototypes */ -static void io_dispatch_chnl(IN struct io_mgr *pio_mgr, - IN OUT struct chnl_object *pchnl, u8 io_mode); -static void io_dispatch_msg(IN struct io_mgr *pio_mgr, +static void io_dispatch_chnl(struct io_mgr *pio_mgr, + OUT struct chnl_object *pchnl, u8 io_mode); +static void io_dispatch_msg(struct io_mgr *pio_mgr, struct msg_mgr *hmsg_mgr); static void io_dispatch_pm(struct io_mgr *pio_mgr); static void notify_chnl_complete(struct chnl_object *pchnl, @@ -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) + const struct io_attrs *mgr_attrts) { int status = 0; struct io_mgr *pio_mgr = NULL; @@ -838,8 +838,8 @@ func_end: * ======== io_dispatch_chnl ======== * Proc-copy chanl dispatch. */ -static void io_dispatch_chnl(IN struct io_mgr *pio_mgr, - IN OUT struct chnl_object *pchnl, u8 io_mode) +static void io_dispatch_chnl(struct io_mgr *pio_mgr, + OUT struct chnl_object *pchnl, u8 io_mode) { if (!pio_mgr) goto func_end; @@ -859,7 +859,7 @@ func_end: * ======== io_dispatch_msg ======== * Performs I/O dispatch on message queues. */ -static void io_dispatch_msg(IN struct io_mgr *pio_mgr, struct msg_mgr *hmsg_mgr) +static void io_dispatch_msg(struct io_mgr *pio_mgr, struct msg_mgr *hmsg_mgr) { if (!pio_mgr) goto func_end; @@ -919,7 +919,7 @@ static void io_dispatch_pm(struct io_mgr *pio_mgr) * out the dispatch of I/O as a non-preemptible event.It can only be * pre-empted by an ISR. */ -void io_dpc(IN OUT unsigned long ref_data) +void io_dpc(OUT unsigned long ref_data) { struct io_mgr *pio_mgr = (struct io_mgr *)ref_data; struct chnl_mgr *chnl_mgr_obj; @@ -1720,7 +1720,7 @@ static u32 write_data(struct bridge_dev_context *dev_ctxt, void *dest, } /* ZCPY IO routines. */ -void io_intr_dsp2(IN struct io_mgr *pio_mgr, IN u16 mb_val) +void io_intr_dsp2(struct io_mgr *pio_mgr, u16 mb_val) { sm_interrupt_dsp(pio_mgr->hbridge_context, mb_val); } @@ -1792,7 +1792,7 @@ int io_sh_msetting(struct io_mgr *hio_mgr, u8 desc, void *pargs) * ======== bridge_io_get_proc_load ======== * Gets the Processor's Load information */ -int bridge_io_get_proc_load(IN struct io_mgr *hio_mgr, +int bridge_io_get_proc_load(struct io_mgr *hio_mgr, OUT struct dsp_procloadstat *proc_lstat) { proc_lstat->curr_load = diff --git a/drivers/staging/tidspbridge/core/msg_sm.c b/drivers/staging/tidspbridge/core/msg_sm.c index 6434854e94a4..26808fc1bb30 100644 --- a/drivers/staging/tidspbridge/core/msg_sm.c +++ b/drivers/staging/tidspbridge/core/msg_sm.c @@ -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) + const struct dsp_msg *pmsg, u32 utimeout) { struct msg_frame *msg_frame_obj; struct msg_mgr *hmsg_mgr; diff --git a/drivers/staging/tidspbridge/core/tiomap3430.c b/drivers/staging/tidspbridge/core/tiomap3430.c index 428389b0e195..4e1eee00ba33 100644 --- a/drivers/staging/tidspbridge/core/tiomap3430.c +++ b/drivers/staging/tidspbridge/core/tiomap3430.c @@ -85,7 +85,7 @@ static int bridge_brd_status(struct bridge_dev_context *dev_ctxt, int *board_state); static int bridge_brd_stop(struct bridge_dev_context *dev_ctxt); static int bridge_brd_write(struct bridge_dev_context *dev_ctxt, - IN u8 *host_buff, + u8 *host_buff, u32 dsp_addr, u32 ul_num_bytes, u32 mem_type); static int bridge_brd_set_state(struct bridge_dev_context *dev_ctxt, @@ -94,7 +94,7 @@ static int bridge_brd_mem_copy(struct bridge_dev_context *dev_ctxt, u32 dsp_dest_addr, u32 dsp_src_addr, u32 ul_num_bytes, u32 mem_type); static int bridge_brd_mem_write(struct bridge_dev_context *dev_ctxt, - IN u8 *host_buff, u32 dsp_addr, + u8 *host_buff, u32 dsp_addr, u32 ul_num_bytes, u32 mem_type); static int bridge_brd_mem_map(struct bridge_dev_context *dev_ctxt, u32 ul_mpu_addr, u32 virt_addr, @@ -105,9 +105,9 @@ static int bridge_brd_mem_un_map(struct bridge_dev_context *dev_ctxt, static int bridge_dev_create(OUT struct bridge_dev_context **dev_cntxt, struct dev_object *hdev_obj, - IN struct cfg_hostres *config_param); + struct cfg_hostres *config_param); static int bridge_dev_ctrl(struct bridge_dev_context *dev_context, - u32 dw_cmd, IN OUT void *pargs); + u32 dw_cmd, OUT void *pargs); static int bridge_dev_destroy(struct bridge_dev_context *dev_ctxt); static u32 user_va2_pa(struct mm_struct *mm, u32 address); static int pte_update(struct bridge_dev_context *dev_ctxt, u32 pa, @@ -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) + const char *driver_file_name) { DBC_REQUIRE(driver_file_name != NULL); @@ -759,7 +759,7 @@ static int bridge_brd_status(struct bridge_dev_context *dev_ctxt, * Copies the buffers to DSP internal or external memory. */ static int bridge_brd_write(struct bridge_dev_context *dev_ctxt, - IN u8 *host_buff, u32 dsp_addr, + u8 *host_buff, u32 dsp_addr, u32 ul_num_bytes, u32 mem_type) { int status = 0; @@ -788,7 +788,7 @@ static int bridge_brd_write(struct bridge_dev_context *dev_ctxt, static int bridge_dev_create(OUT struct bridge_dev_context **dev_cntxt, struct dev_object *hdev_obj, - IN struct cfg_hostres *config_param) + struct cfg_hostres *config_param) { int status = 0; struct bridge_dev_context *dev_context = NULL; @@ -954,7 +954,7 @@ func_end: * Receives device specific commands. */ static int bridge_dev_ctrl(struct bridge_dev_context *dev_context, - u32 dw_cmd, IN OUT void *pargs) + u32 dw_cmd, OUT void *pargs) { int status = 0; struct bridge_ioctl_extproc *pa_ext_proc = @@ -1141,7 +1141,7 @@ static int bridge_brd_mem_copy(struct bridge_dev_context *dev_ctxt, /* Mem Write does not halt the DSP to write unlike bridge_brd_write */ static int bridge_brd_mem_write(struct bridge_dev_context *dev_ctxt, - IN u8 *host_buff, u32 dsp_addr, + u8 *host_buff, u32 dsp_addr, u32 ul_num_bytes, u32 mem_type) { int status = 0; diff --git a/drivers/staging/tidspbridge/core/tiomap3430_pwr.c b/drivers/staging/tidspbridge/core/tiomap3430_pwr.c index 384b833dc3e7..dc63b3ae837c 100644 --- a/drivers/staging/tidspbridge/core/tiomap3430_pwr.c +++ b/drivers/staging/tidspbridge/core/tiomap3430_pwr.c @@ -50,7 +50,7 @@ * Sets new DSP constraint */ int handle_constraints_set(struct bridge_dev_context *dev_context, - IN void *pargs) + void *pargs) { #ifdef CONFIG_TIDSPBRIDGE_DVFS u32 *constraint_val; @@ -142,8 +142,8 @@ int handle_hibernation_from_dsp(struct bridge_dev_context *dev_context) * ======== sleep_dsp ======== * Put DSP in low power consuming state. */ -int sleep_dsp(struct bridge_dev_context *dev_context, IN u32 dw_cmd, - IN void *pargs) +int sleep_dsp(struct bridge_dev_context *dev_context, u32 dw_cmd, + void *pargs) { int status = 0; #ifdef CONFIG_PM @@ -248,7 +248,7 @@ int sleep_dsp(struct bridge_dev_context *dev_context, IN u32 dw_cmd, * ======== wake_dsp ======== * Wake up DSP from sleep. */ -int wake_dsp(struct bridge_dev_context *dev_context, IN void *pargs) +int wake_dsp(struct bridge_dev_context *dev_context, void *pargs) { int status = 0; #ifdef CONFIG_PM @@ -275,7 +275,7 @@ int wake_dsp(struct bridge_dev_context *dev_context, IN void *pargs) * Enable/Disable the DSP peripheral clocks as needed.. */ int dsp_peripheral_clk_ctrl(struct bridge_dev_context *dev_context, - IN void *pargs) + void *pargs) { u32 ext_clk = 0; u32 ext_clk_id = 0; @@ -336,7 +336,7 @@ int dsp_peripheral_clk_ctrl(struct bridge_dev_context *dev_context, * Sends prescale notification to DSP * */ -int pre_scale_dsp(struct bridge_dev_context *dev_context, IN void *pargs) +int pre_scale_dsp(struct bridge_dev_context *dev_context, void *pargs) { #ifdef CONFIG_TIDSPBRIDGE_DVFS u32 level; @@ -370,7 +370,7 @@ int pre_scale_dsp(struct bridge_dev_context *dev_context, IN void *pargs) * */ int post_scale_dsp(struct bridge_dev_context *dev_context, - IN void *pargs) + void *pargs) { int status = 0; #ifdef CONFIG_TIDSPBRIDGE_DVFS diff --git a/drivers/staging/tidspbridge/core/tiomap_io.c b/drivers/staging/tidspbridge/core/tiomap_io.c index 4153eefce3fe..bfe47c52ffe0 100644 --- a/drivers/staging/tidspbridge/core/tiomap_io.c +++ b/drivers/staging/tidspbridge/core/tiomap_io.c @@ -179,7 +179,7 @@ int read_ext_dsp_data(struct bridge_dev_context *dev_ctxt, * Copies buffers to the DSP internal/external memory. */ int write_dsp_data(struct bridge_dev_context *dev_context, - IN u8 *host_buff, u32 dsp_addr, u32 ul_num_bytes, + u8 *host_buff, u32 dsp_addr, u32 ul_num_bytes, u32 mem_type) { u32 offset; @@ -225,7 +225,7 @@ int write_dsp_data(struct bridge_dev_context *dev_context, * */ int write_ext_dsp_data(struct bridge_dev_context *dev_context, - IN u8 *host_buff, u32 dsp_addr, + u8 *host_buff, u32 dsp_addr, u32 ul_num_bytes, u32 mem_type, bool dynamic_load) { diff --git a/drivers/staging/tidspbridge/core/tiomap_io.h b/drivers/staging/tidspbridge/core/tiomap_io.h index 5a26ea04e8c1..5358752616d7 100644 --- a/drivers/staging/tidspbridge/core/tiomap_io.h +++ b/drivers/staging/tidspbridge/core/tiomap_io.h @@ -65,7 +65,7 @@ extern int write_dsp_data(struct bridge_dev_context *dev_context, * shm Memory manager in the CDB */ extern int write_ext_dsp_data(struct bridge_dev_context *dev_context, - IN u8 *host_buff, u32 dsp_addr, + u8 *host_buff, u32 dsp_addr, u32 ul_num_bytes, u32 mem_type, bool dynamic_load); @@ -73,9 +73,9 @@ extern int write_ext_dsp_data(struct bridge_dev_context *dev_context, * ======== write_ext32_bit_dsp_data ======== * Writes 32 bit data to the external memory */ -extern inline void write_ext32_bit_dsp_data(IN const +extern inline void write_ext32_bit_dsp_data(const struct bridge_dev_context *dev_context, - IN u32 dsp_addr, IN u32 val) + u32 dsp_addr, u32 val) { *(u32 *) dsp_addr = ((dev_context->tc_word_swap_on) ? (((val << 16) & 0xFFFF0000) | @@ -88,8 +88,8 @@ extern inline void write_ext32_bit_dsp_data(IN const * ======== read_ext32_bit_dsp_data ======== * Reads 32 bit data from the external memory */ -extern inline u32 read_ext32_bit_dsp_data(IN const struct bridge_dev_context - *dev_context, IN u32 dsp_addr) +extern inline u32 read_ext32_bit_dsp_data(const struct bridge_dev_context + *dev_context, u32 dsp_addr) { u32 ret; ret = *(u32 *) dsp_addr; |