Skip to content

Commit

Permalink
staging: tidspbridge: remove OUT define
Browse files Browse the repository at this point in the history
Remove OUT modifier which makes no sense for linux kernel

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Menon, Nishanth authored and Greg Kroah-Hartman committed Jul 22, 2010
1 parent 21aaf42 commit e6bf74f
Show file tree
Hide file tree
Showing 51 changed files with 234 additions and 234 deletions.
14 changes: 7 additions & 7 deletions drivers/staging/tidspbridge/core/chnl_sm.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static void free_chirp_list(struct lst_list *chirp_list);
static struct chnl_irp *make_new_chirp(void);

static int search_free_channel(struct chnl_mgr *chnl_mgr_obj,
OUT u32 *chnl);
u32 *chnl);

/*
* ======== bridge_chnl_add_io_req ========
Expand Down Expand Up @@ -381,7 +381,7 @@ int bridge_chnl_close(struct chnl_object *chnl_obj)
* Create a channel manager object, responsible for opening new channels
* and closing old ones for a given board.
*/
int bridge_chnl_create(OUT struct chnl_mgr **channel_mgr,
int bridge_chnl_create(struct chnl_mgr **channel_mgr,
struct dev_object *hdev_obj,
const struct chnl_mgrattrs *mgr_attrts)
{
Expand Down Expand Up @@ -534,7 +534,7 @@ int bridge_chnl_flush_io(struct chnl_object *chnl_obj, u32 timeout)
* Retrieve information related to a channel.
*/
int bridge_chnl_get_info(struct chnl_object *chnl_obj,
OUT struct chnl_info *channel_info)
struct chnl_info *channel_info)
{
int status = 0;
struct chnl_object *pchnl = (struct chnl_object *)chnl_obj;
Expand Down Expand Up @@ -568,7 +568,7 @@ int bridge_chnl_get_info(struct chnl_object *chnl_obj,
* Note: Ensures Channel Invariant (see notes above).
*/
int bridge_chnl_get_ioc(struct chnl_object *chnl_obj, u32 timeout,
OUT struct chnl_ioc *chan_ioc)
struct chnl_ioc *chan_ioc)
{
int status = 0;
struct chnl_object *pchnl = (struct chnl_object *)chnl_obj;
Expand Down Expand Up @@ -711,7 +711,7 @@ int bridge_chnl_get_ioc(struct chnl_object *chnl_obj, u32 timeout,
* Retrieve information related to the channel manager.
*/
int bridge_chnl_get_mgr_info(struct chnl_mgr *hchnl_mgr, u32 ch_id,
OUT struct chnl_mgrinfo *mgr_info)
struct chnl_mgrinfo *mgr_info)
{
int status = 0;
struct chnl_mgr *chnl_mgr_obj = (struct chnl_mgr *)hchnl_mgr;
Expand Down Expand Up @@ -775,7 +775,7 @@ int bridge_chnl_idle(struct chnl_object *chnl_obj, u32 timeout,
* ======== bridge_chnl_open ========
* Open a new half-duplex channel to the DSP board.
*/
int bridge_chnl_open(OUT struct chnl_object **chnl,
int bridge_chnl_open(struct chnl_object **chnl,
struct chnl_mgr *hchnl_mgr, s8 chnl_mode,
u32 ch_id, const struct chnl_attr *pattrs)
{
Expand Down Expand Up @@ -997,7 +997,7 @@ static struct chnl_irp *make_new_chirp(void)
* Search for a free channel slot in the array of channel pointers.
*/
static int search_free_channel(struct chnl_mgr *chnl_mgr_obj,
OUT u32 *chnl)
u32 *chnl)
{
int status = -ENOSR;
u32 i;
Expand Down
12 changes: 6 additions & 6 deletions drivers/staging/tidspbridge/core/io_sm.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ struct io_mgr {

/* Function Prototypes */
static void io_dispatch_chnl(struct io_mgr *pio_mgr,
OUT struct chnl_object *pchnl, u8 io_mode);
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);
Expand Down Expand Up @@ -161,7 +161,7 @@ static int register_shm_segs(struct io_mgr *hio_mgr,
* ======== bridge_io_create ========
* Create an IO manager object.
*/
int bridge_io_create(OUT struct io_mgr **io_man,
int bridge_io_create(struct io_mgr **io_man,
struct dev_object *hdev_obj,
const struct io_attrs *mgr_attrts)
{
Expand Down Expand Up @@ -839,7 +839,7 @@ void io_cancel_chnl(struct io_mgr *hio_mgr, u32 chnl)
* Proc-copy chanl dispatch.
*/
static void io_dispatch_chnl(struct io_mgr *pio_mgr,
OUT struct chnl_object *pchnl, u8 io_mode)
struct chnl_object *pchnl, u8 io_mode)
{
if (!pio_mgr)
goto func_end;
Expand Down Expand Up @@ -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(OUT unsigned long ref_data)
void io_dpc(unsigned long ref_data)
{
struct io_mgr *pio_mgr = (struct io_mgr *)ref_data;
struct chnl_mgr *chnl_mgr_obj;
Expand Down Expand Up @@ -1014,7 +1014,7 @@ void io_mbox_msg(u32 msg)
* interrupts the DSP.
*/
void io_request_chnl(struct io_mgr *io_manager, struct chnl_object *pchnl,
u8 io_mode, OUT u16 *mbx_val)
u8 io_mode, u16 *mbx_val)
{
struct chnl_mgr *chnl_mgr_obj;
struct shm *sm;
Expand Down Expand Up @@ -1793,7 +1793,7 @@ int io_sh_msetting(struct io_mgr *hio_mgr, u8 desc, void *pargs)
* Gets the Processor's Load information
*/
int bridge_io_get_proc_load(struct io_mgr *hio_mgr,
OUT struct dsp_procloadstat *proc_lstat)
struct dsp_procloadstat *proc_lstat)
{
proc_lstat->curr_load =
hio_mgr->shared_mem->load_mon_info.curr_dsp_load;
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/tidspbridge/core/msg_sm.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static void free_msg_list(struct lst_list *msg_list);
* Create an object to manage message queues. Only one of these objects
* can exist per device object.
*/
int bridge_msg_create(OUT struct msg_mgr **msg_man,
int bridge_msg_create(struct msg_mgr **msg_man,
struct dev_object *hdev_obj,
msg_onexit msg_callback)
{
Expand Down Expand Up @@ -120,7 +120,7 @@ int bridge_msg_create(OUT struct msg_mgr **msg_man,
* on the DSP.
*/
int bridge_msg_create_queue(struct msg_mgr *hmsg_mgr,
OUT struct msg_queue **msgq,
struct msg_queue **msgq,
u32 msgq_id, u32 max_msgs, void *arg)
{
u32 i;
Expand Down
14 changes: 7 additions & 7 deletions drivers/staging/tidspbridge/core/tiomap3430.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
/* Forward Declarations: */
static int bridge_brd_monitor(struct bridge_dev_context *dev_ctxt);
static int bridge_brd_read(struct bridge_dev_context *dev_ctxt,
OUT u8 *host_buff,
u8 *host_buff,
u32 dsp_addr, u32 ul_num_bytes,
u32 mem_type);
static int bridge_brd_start(struct bridge_dev_context *dev_ctxt,
Expand All @@ -102,12 +102,12 @@ static int bridge_brd_mem_map(struct bridge_dev_context *dev_ctxt,
struct page **mapped_pages);
static int bridge_brd_mem_un_map(struct bridge_dev_context *dev_ctxt,
u32 virt_addr, u32 ul_num_bytes);
static int bridge_dev_create(OUT struct bridge_dev_context
static int bridge_dev_create(struct bridge_dev_context
**dev_cntxt,
struct dev_object *hdev_obj,
struct cfg_hostres *config_param);
static int bridge_dev_ctrl(struct bridge_dev_context *dev_context,
u32 dw_cmd, OUT void *pargs);
u32 dw_cmd, 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,
Expand Down Expand Up @@ -236,7 +236,7 @@ static void bad_page_dump(u32 pa, struct page *pg)
* purpose:
* Bridge Driver entry point.
*/
void bridge_drv_entry(OUT struct bridge_drv_interface **drv_intf,
void bridge_drv_entry(struct bridge_drv_interface **drv_intf,
const char *driver_file_name)
{

Expand Down Expand Up @@ -304,7 +304,7 @@ static int bridge_brd_monitor(struct bridge_dev_context *dev_ctxt)
* Reads buffers for DSP memory.
*/
static int bridge_brd_read(struct bridge_dev_context *dev_ctxt,
OUT u8 *host_buff, u32 dsp_addr,
u8 *host_buff, u32 dsp_addr,
u32 ul_num_bytes, u32 mem_type)
{
int status = 0;
Expand Down Expand Up @@ -785,7 +785,7 @@ static int bridge_brd_write(struct bridge_dev_context *dev_ctxt,
* ======== bridge_dev_create ========
* Creates a driver object. Puts DSP in self loop.
*/
static int bridge_dev_create(OUT struct bridge_dev_context
static int bridge_dev_create(struct bridge_dev_context
**dev_cntxt,
struct dev_object *hdev_obj,
struct cfg_hostres *config_param)
Expand Down Expand Up @@ -954,7 +954,7 @@ static int bridge_dev_create(OUT struct bridge_dev_context
* Receives device specific commands.
*/
static int bridge_dev_ctrl(struct bridge_dev_context *dev_context,
u32 dw_cmd, OUT void *pargs)
u32 dw_cmd, void *pargs)
{
int status = 0;
struct bridge_ioctl_extproc *pa_ext_proc =
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/tidspbridge/core/tiomap_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ bool symbols_reloaded = true;
* Copies DSP external memory buffers to the host side buffers.
*/
int read_ext_dsp_data(struct bridge_dev_context *dev_ctxt,
OUT u8 *host_buff, u32 dsp_addr,
u8 *host_buff, u32 dsp_addr,
u32 ul_num_bytes, u32 mem_type)
{
int status = 0;
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/tidspbridge/core/tiomap_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@
* is configured by the combination of DSP MMU and shm Memory manager in the CDB
*/
extern int read_ext_dsp_data(struct bridge_dev_context *dev_ctxt,
OUT u8 *host_buff, u32 dsp_addr,
u8 *host_buff, u32 dsp_addr,
u32 ul_num_bytes, u32 mem_type);

/*
* ======== write_dsp_data ========
*/
extern int write_dsp_data(struct bridge_dev_context *dev_context,
OUT u8 *host_buff, u32 dsp_addr,
u8 *host_buff, u32 dsp_addr,
u32 ul_num_bytes, u32 mem_type);

/*
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/tidspbridge/gen/uuidutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* Note: snprintf format specifier is:
* %[flags] [width] [.precision] [{h | l | I64 | L}]type
*/
void uuid_uuid_to_string(struct dsp_uuid *uuid_obj, OUT char *sz_uuid,
void uuid_uuid_to_string(struct dsp_uuid *uuid_obj, char *sz_uuid,
s32 size)
{
s32 i; /* return result from snprintf. */
Expand Down Expand Up @@ -75,7 +75,7 @@ static s32 uuid_hex_to_bin(char *buf, s32 len)
* Purpose:
* Converts a string to a struct dsp_uuid.
*/
void uuid_uuid_from_string(char *sz_uuid, OUT struct dsp_uuid *uuid_obj)
void uuid_uuid_from_string(char *sz_uuid, struct dsp_uuid *uuid_obj)
{
s32 j;

Expand Down
14 changes: 7 additions & 7 deletions drivers/staging/tidspbridge/include/dspbridge/cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ extern void cfg_exit(void);
* 0: *auto_start contains autostart mask for this devnode.
*/
extern int cfg_get_auto_start(struct cfg_devnode *dev_node_obj,
OUT u32 *auto_start);
u32 *auto_start);

/*
* ======== cfg_get_cd_version ========
Expand All @@ -70,7 +70,7 @@ extern int cfg_get_auto_start(struct cfg_devnode *dev_node_obj,
* 0: Success.
* else: *version is NULL.
*/
extern int cfg_get_cd_version(OUT u32 *version);
extern int cfg_get_cd_version(u32 *version);

/*
* ======== cfg_get_dev_object ========
Expand All @@ -91,7 +91,7 @@ extern int cfg_get_cd_version(OUT u32 *version);
* else: *value is set to 0L.
*/
extern int cfg_get_dev_object(struct cfg_devnode *dev_node_obj,
OUT u32 *value);
u32 *value);

/*
* ======== cfg_get_exec_file ========
Expand All @@ -113,7 +113,7 @@ extern int cfg_get_dev_object(struct cfg_devnode *dev_node_obj,
* devnode.
*/
extern int cfg_get_exec_file(struct cfg_devnode *dev_node_obj,
u32 buf_size, OUT char *str_exec_file);
u32 buf_size, char *str_exec_file);

/*
* ======== cfg_get_object ========
Expand All @@ -130,7 +130,7 @@ extern int cfg_get_exec_file(struct cfg_devnode *dev_node_obj,
* 0: *value is set to the retrieved u32(non-Zero).
* else: *value is set to 0L.
*/
extern int cfg_get_object(OUT u32 *value, u8 dw_type);
extern int cfg_get_object(u32 *value, u8 dw_type);

/*
* ======== cfg_get_perf_value ========
Expand All @@ -146,7 +146,7 @@ extern int cfg_get_object(OUT u32 *value, u8 dw_type);
* enable_perf != NULL;
* Ensures:
*/
extern void cfg_get_perf_value(OUT bool *enable_perf);
extern void cfg_get_perf_value(bool *enable_perf);

/*
* ======== cfg_get_zl_file ========
Expand All @@ -168,7 +168,7 @@ extern void cfg_get_perf_value(OUT bool *enable_perf);
* for this devnode.
*/
extern int cfg_get_zl_file(struct cfg_devnode *dev_node_obj,
u32 buf_size, OUT char *str_zl_file_name);
u32 buf_size, char *str_zl_file_name);

/*
* ======== cfg_init ========
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/tidspbridge/include/dspbridge/chnl.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ extern int chnl_close(struct chnl_object *chnl_obj);
* board without an intervening call to
* chnl_destroy() will fail.
*/
extern int chnl_create(OUT struct chnl_mgr **channel_mgr,
extern int chnl_create(struct chnl_mgr **channel_mgr,
struct dev_object *hdev_obj,
const struct chnl_mgrattrs *mgr_attrts);

Expand Down
12 changes: 6 additions & 6 deletions drivers/staging/tidspbridge/include/dspbridge/cmm.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
*/
extern void *cmm_calloc_buf(struct cmm_object *hcmm_mgr,
u32 usize, struct cmm_attrs *pattrs,
OUT void **pp_buf_va);
void **pp_buf_va);

/*
* ======== cmm_create ========
Expand All @@ -85,7 +85,7 @@ extern void *cmm_calloc_buf(struct cmm_object *hcmm_mgr,
* Ensures:
*
*/
extern int cmm_create(OUT struct cmm_object **ph_cmm_mgr,
extern int cmm_create(struct cmm_object **ph_cmm_mgr,
struct dev_object *hdev_obj,
const struct cmm_mgrattrs *mgr_attrts);

Expand Down Expand Up @@ -163,7 +163,7 @@ extern int cmm_free_buf(struct cmm_object *hcmm_mgr,
* Ensures:
*/
extern int cmm_get_handle(void *hprocessor,
OUT struct cmm_object **ph_cmm_mgr);
struct cmm_object **ph_cmm_mgr);

/*
* ======== cmm_get_info ========
Expand All @@ -182,7 +182,7 @@ extern int cmm_get_handle(void *hprocessor,
*
*/
extern int cmm_get_info(struct cmm_object *hcmm_mgr,
OUT struct cmm_info *cmm_info_obj);
struct cmm_info *cmm_info_obj);

/*
* ======== cmm_init ========
Expand Down Expand Up @@ -295,7 +295,7 @@ extern void *cmm_xlator_alloc_buf(struct cmm_xlatorobject *xlator,
* Ensures:
*
*/
extern int cmm_xlator_create(OUT struct cmm_xlatorobject **xlator,
extern int cmm_xlator_create(struct cmm_xlatorobject **xlator,
struct cmm_object *hcmm_mgr,
struct cmm_xlatorattrs *xlator_attrs);

Expand Down Expand Up @@ -359,7 +359,7 @@ extern int cmm_xlator_free_buf(struct cmm_xlatorobject *xlator,
*
*/
extern int cmm_xlator_info(struct cmm_xlatorobject *xlator,
OUT u8 **paddr,
u8 **paddr,
u32 ul_size, u32 segm_id, bool set_info);

/*
Expand Down
Loading

0 comments on commit e6bf74f

Please sign in to comment.