diff mbox

DSPBRIDGE: Change dw_state type to u8

Message ID 830E2177532E7946BE0E82F0F4288505044E450B97@dbde02.ent.ti.com (mailing list archive)
State Accepted
Delegated to:
Headers show

Commit Message

Hebbar, Shivananda April 3, 2010, 12:59 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/plat-omap/include/dspbridge/_chnl_sm.h b/arch/arm/plat-omap/include/dspbridge/_chnl_sm.h
index 3c6f891..cd153ed 100644
--- a/arch/arm/plat-omap/include/dspbridge/_chnl_sm.h
+++ b/arch/arm/plat-omap/include/dspbridge/_chnl_sm.h
@@ -135,7 +135,7 @@  struct chnl_object {
  /* Pointer back to channel manager */
  struct chnl_mgr *chnl_mgr_obj;
  u32 chnl_id;  /* Channel id */
- u32 dw_state;  /* Current channel state */
+ u8 dw_state;  /* Current channel state */
  u32 chnl_mode;  /* Chnl mode and attributes */
  /* Chnl I/O completion event (user mode) */
  bhandle user_event;
diff --git a/arch/arm/plat-omap/include/dspbridge/chnlpriv.h b/arch/arm/plat-omap/include/dspbridge/chnlpriv.h
index 0793e0d..939b783 100644
--- a/arch/arm/plat-omap/include/dspbridge/chnlpriv.h
+++ b/arch/arm/plat-omap/include/dspbridge/chnlpriv.h
@@ -49,9 +49,9 @@ 
 #define CHNL_MODEMASK       0x1001
 
 /* Higher level channel states: */
-#define CHNL_STATEREADY     0x0000 /* Channel ready for I/O. */
-#define CHNL_STATECANCEL    0x0001 /* I/O was cancelled. */
-#define CHNL_STATEEOS       0x0002 /* End Of Stream reached. */
+#define CHNL_STATEREADY  0 /* Channel ready for I/O. */
+#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)
@@ -78,7 +78,7 @@  struct chnl_info {
  /*Abstraction of I/O completion event. */
  struct sync_object *sync_event;
  u32 dw_mode;  /* Channel mode. */
- u32 dw_state;  /* Current channel state. */
+ u8 dw_state;  /* Current channel state. */
  u32 bytes_tx;  /* Total bytes transferred. */
  u32 cio_cs;  /* Number of IOCs in queue. */
  u32 cio_reqs;  /* Number of IO Requests in queue. */
diff --git a/drivers/dsp/bridge/wmd/chnl_sm.c b/drivers/dsp/bridge/wmd/chnl_sm.c
index 0c14bc2..1050228 100644
--- a/drivers/dsp/bridge/wmd/chnl_sm.c
+++ b/drivers/dsp/bridge/wmd/chnl_sm.c
@@ -99,7 +99,7 @@  dsp_status bridge_chnl_add_io_req(struct chnl_object *chnl_obj, void *pHostBuf,
  struct chnl_irp *chnl_packet_obj = NULL;
  struct wmd_dev_context *dev_ctxt;
  struct dev_object *dev_obj;
- u32 dw_state;
+ u8 dw_state;
  bool is_eos;
  struct chnl_mgr *chnl_mgr_obj = pchnl->chnl_mgr_obj;
  u8 *host_sys_buf = NULL;