Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57e6a9f2 authored by Armando Uribe's avatar Armando Uribe Committed by Omar Ramirez Luna
Browse files

staging: tidspbridge: Remove unused functions



Remove functions that are not used at all, also remove the dependencies
of this functions like struct members, comments and calls.

Signed-off-by: default avatarArmando Uribe <x0095078@ti.com>
Signed-off-by: default avatarOmar Ramirez Luna <omar.ramirez@ti.com>
parent 2c36fac4
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -1682,10 +1682,6 @@ int bridge_io_get_proc_load(struct io_mgr *hio_mgr,
	return 0;
	return 0;
}
}


void io_sm_init(void)
{
	/* Do nothing */
}


#if defined(CONFIG_TIDSPBRIDGE_BACKTRACE) || defined(CONFIG_TIDSPBRIDGE_DEBUG)
#if defined(CONFIG_TIDSPBRIDGE_BACKTRACE) || defined(CONFIG_TIDSPBRIDGE_DEBUG)
void print_dsp_debug_trace(struct io_mgr *hio_mgr)
void print_dsp_debug_trace(struct io_mgr *hio_mgr)
+0 −2
Original line number Original line Diff line number Diff line
@@ -259,8 +259,6 @@ void bridge_drv_entry(struct bridge_drv_interface **drv_intf,


	DBC_REQUIRE(driver_file_name != NULL);
	DBC_REQUIRE(driver_file_name != NULL);


	io_sm_init();		/* Initialization of io_sm module */

	if (strcmp(driver_file_name, "UMA") == 0)
	if (strcmp(driver_file_name, "UMA") == 0)
		*drv_intf = &drv_interface_fxns;
		*drv_intf = &drv_interface_fxns;
	else
	else
+0 −21
Original line number Original line Diff line number Diff line
@@ -24,27 +24,6 @@


#include <dspbridge/chnlpriv.h>
#include <dspbridge/chnlpriv.h>


/*
 *  ======== chnl_close ========
 *  Purpose:
 *      Ensures all pending I/O on this channel is cancelled, discards all
 *      queued I/O completion notifications, then frees the resources allocated
 *      for this channel, and makes the corresponding logical channel id
 *      available for subsequent use.
 *  Parameters:
 *      chnl_obj:          Channel object handle.
 *  Returns:
 *      0:        Success;
 *      -EFAULT:    Invalid chnl_obj.
 *  Requires:
 *      chnl_init(void) called.
 *      No thread must be blocked on this channel's I/O completion event.
 *  Ensures:
 *      0:        The I/O completion event for this channel is freed.
 *                      chnl_obj is no longer valid.
 */
extern int chnl_close(struct chnl_object *chnl_obj);

/*
/*
 *  ======== chnl_create ========
 *  ======== chnl_create ========
 *  Purpose:
 *  Purpose:
+0 −6
Original line number Original line Diff line number Diff line
@@ -42,18 +42,12 @@ extern bool dbll_init(void);
extern int dbll_load(struct dbll_library_obj *lib,
extern int dbll_load(struct dbll_library_obj *lib,
			    dbll_flags flags,
			    dbll_flags flags,
			    struct dbll_attrs *attrs, u32 * entry);
			    struct dbll_attrs *attrs, u32 * entry);
extern int dbll_load_sect(struct dbll_library_obj *zl_lib,
				 char *sec_name, struct dbll_attrs *attrs);
extern int dbll_open(struct dbll_tar_obj *target, char *file,
extern int dbll_open(struct dbll_tar_obj *target, char *file,
			    dbll_flags flags,
			    dbll_flags flags,
		       struct dbll_library_obj **lib_obj);
		       struct dbll_library_obj **lib_obj);
extern int dbll_read_sect(struct dbll_library_obj *lib,
extern int dbll_read_sect(struct dbll_library_obj *lib,
				 char *name, char *buf, u32 size);
				 char *name, char *buf, u32 size);
extern void dbll_set_attrs(struct dbll_tar_obj *target,
			   struct dbll_attrs *pattrs);
extern void dbll_unload(struct dbll_library_obj *lib, struct dbll_attrs *attrs);
extern void dbll_unload(struct dbll_library_obj *lib, struct dbll_attrs *attrs);
extern int dbll_unload_sect(struct dbll_library_obj *lib,
				   char *sect_name, struct dbll_attrs *attrs);
#ifdef CONFIG_TIDSPBRIDGE_BACKTRACE
#ifdef CONFIG_TIDSPBRIDGE_BACKTRACE
bool dbll_find_dsp_symbol(struct dbll_library_obj *zl_lib, u32 address,
bool dbll_find_dsp_symbol(struct dbll_library_obj *zl_lib, u32 address,
		u32 offset_range, u32 *sym_addr_output, char *name_output);
		u32 offset_range, u32 *sym_addr_output, char *name_output);
+0 −3
Original line number Original line Diff line number Diff line
@@ -485,12 +485,9 @@ struct dbll_fxns {
	dbll_get_sect_fxn get_sect_fxn;
	dbll_get_sect_fxn get_sect_fxn;
	dbll_init_fxn init_fxn;
	dbll_init_fxn init_fxn;
	dbll_load_fxn load_fxn;
	dbll_load_fxn load_fxn;
	dbll_load_sect_fxn load_sect_fxn;
	dbll_open_fxn open_fxn;
	dbll_open_fxn open_fxn;
	dbll_read_sect_fxn read_sect_fxn;
	dbll_read_sect_fxn read_sect_fxn;
	dbll_set_attrs_fxn set_attrs_fxn;
	dbll_unload_fxn unload_fxn;
	dbll_unload_fxn unload_fxn;
	dbll_unload_sect_fxn unload_sect_fxn;
};
};


#endif /* DBLDEFS_ */
#endif /* DBLDEFS_ */
Loading