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

Commit 14de72b0 authored by Armando Uribe's avatar Armando Uribe Committed by Greg Kroah-Hartman
Browse files

staging: tidspbridge: Remove unused macros



This patch removes a couple of macros that are not
being used

Signed-off-by: default avatarArmando Uribe <x0095078@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent bf968b0a
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -310,10 +310,6 @@ extern uint32_t dload_reverse_checksum16(void *data, unsigned siz);
#endif
#endif

#define IS_DATA_SCN(zzz) (DLOAD_SECTION_TYPE((zzz)->type) != DLOAD_TEXT)
#define IS_DATA_SCN_NUM(zzz) \
		(DLOAD_SECT_TYPE(&dlthis->sect_hdrs[(zzz)-1]) != DLOAD_TEXT)

/*
 * exported by reloc.c
 */
+0 −1
Original line number Diff line number Diff line
@@ -252,7 +252,6 @@ int dload_get_section_info(void *minfo, const char *section_name,
}

#define IPH_SIZE (sizeof(struct image_packet_t) - sizeof(u32))
#define REVERSE_REORDER_MAP(rawmap) ((rawmap) ^ 0x3030303)

/**************************************************************************
 * Procedure dload_get_section
+0 −1
Original line number Diff line number Diff line
@@ -40,7 +40,6 @@
#define CHNL_IOCSTATEOS      0x8000	/* End Of Stream reached. */

/* Macros for checking I/O Completion status: */
#define CHNL_IS_EOS(ioc)         (ioc.status & CHNL_IOCSTATEOS)
#define CHNL_IS_IO_COMPLETE(ioc)  (!(ioc.status & ~CHNL_IOCSTATEOS))
#define CHNL_IS_IO_CANCELLED(ioc) (ioc.status & CHNL_IOCSTATCANCEL)
#define CHNL_IS_TIMED_OUT(ioc)    (ioc.status & CHNL_IOCSTATTIMEOUT)
+0 −3
Original line number Diff line number Diff line
@@ -50,9 +50,6 @@
#define CHNL_STATECANCEL	1	/* I/O was cancelled. */
#define CHNL_STATEEOS		2	/* End Of Stream reached. */

/* Determine if user supplied an event for this channel: */
#define CHNL_IS_USER_EVENT(mode)  (mode & CHNL_MODEUSEREVENT)

/* Macros for checking mode: */
#define CHNL_IS_INPUT(mode)      (mode & CHNL_MODEFROMDSP)
#define CHNL_IS_OUTPUT(mode)     (!CHNL_IS_INPUT(mode))
+0 −11
Original line number Diff line number Diff line
@@ -120,17 +120,6 @@ static inline bool is_valid_proc_event(u32 x)
	return (x == 0 || (x & VALID_PROC_EVENT && !(x & ~VALID_PROC_EVENT)));
}

#define IS_VALID_NODE_EVENT(x)    (((x) == 0) || \
	(((x) & (DSP_NODESTATECHANGE | DSP_NODEMESSAGEREADY)) && \
	!((x) & ~(DSP_NODESTATECHANGE | DSP_NODEMESSAGEREADY))))

#define IS_VALID_STRM_EVENT(x)     (((x) == 0) || (((x) & (DSP_STREAMDONE | \
				DSP_STREAMIOCOMPLETION)) && \
				!((x) & ~(DSP_STREAMDONE | \
				DSP_STREAMIOCOMPLETION))))

#define IS_VALID_NOTIFY_MASK(x)   ((x) & DSP_SIGNALEVENT)

/* The Node UUID structure */
struct dsp_uuid {
	u32 ul_data1;
Loading