From patchwork Sat Apr 3 12:59:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hebbar, Shivananda" X-Patchwork-Id: 90530 X-Patchwork-Delegate: omar.ramirez@ti.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o33CxSCb017063 for ; Sat, 3 Apr 2010 12:59:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753619Ab0DCM71 (ORCPT ); Sat, 3 Apr 2010 08:59:27 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:54377 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752794Ab0DCM71 convert rfc822-to-8bit (ORCPT ); Sat, 3 Apr 2010 08:59:27 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id o33CxNcD005649 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 3 Apr 2010 07:59:26 -0500 Received: from dbde71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id o33CxM0B010634 for ; Sat, 3 Apr 2010 18:29:22 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde71.ent.ti.com ([172.24.170.149]) with mapi; Sat, 3 Apr 2010 18:29:21 +0530 From: "Hebbar, Shivananda" To: "linux-omap@vger.kernel.org" Date: Sat, 3 Apr 2010 18:29:20 +0530 Subject: [PATCH] DSPBRIDGE: Change dw_state type to u8 Thread-Topic: [PATCH] DSPBRIDGE: Change dw_state type to u8 Thread-Index: AcrJ97CMNmLzhyJ0Te2VxjWpFAr4BADXs07g Message-ID: <830E2177532E7946BE0E82F0F4288505044E450B97@dbde02.ent.ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sat, 03 Apr 2010 12:59:28 +0000 (UTC) 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;