All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Hebbar, Shivananda" <x0hebbar@ti.com>
To: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: [PATCH] DSPBRIDGE: Change max channels/open channels type to u8
Date: Sat, 3 Apr 2010 18:32:09 +0530	[thread overview]
Message-ID: <830E2177532E7946BE0E82F0F4288505044E450B99@dbde02.ent.ti.com> (raw)

>From eb282300f2527473fa0bfbaa23a516ca8361f18a Mon Sep 17 00:00:00 2001
From: Shivananda Hebbar <x0hebbar@ti.com>
Date: Fri, 19 Mar 2010 16:15:25 -0600
Subject: [PATCH] DSPBRIDGE: Change max channels/open channels type to u8

max channels can have max value of 32. So changing
max channnels and open channels type to u8

Signed-off-by: Shivananda Hebbar <x0hebbar@ti.com>
---
 arch/arm/plat-omap/include/dspbridge/_chnl_sm.h |    4 ++--
 arch/arm/plat-omap/include/dspbridge/chnlpriv.h |    6 +++---
 drivers/dsp/bridge/wmd/chnl_sm.c                |    2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/arm/plat-omap/include/dspbridge/_chnl_sm.h b/arch/arm/plat-omap/include/dspbridge/_chnl_sm.h
index 1c64165..0084c2e 100644
--- a/arch/arm/plat-omap/include/dspbridge/_chnl_sm.h
+++ b/arch/arm/plat-omap/include/dspbridge/_chnl_sm.h
@@ -118,8 +118,8 @@ struct chnl_mgr {
  /* Critical section object handle */
  struct sync_csobject *hcs_obj;
  u32 word_size;  /* Size in bytes of DSP word */
- u32 max_channels; /* Total number of channels */
- u32 open_channels; /* Total number of open channels */
+ u8 max_channels; /* Total number of channels */
+ u8 open_channels; /* Total number of open channels */
  struct chnl_object **ap_channel; /* Array of channels */
  u8 dw_type;  /* Type of channel class library */
  /* If no shm syms, return for CHNL_Open */
diff --git a/arch/arm/plat-omap/include/dspbridge/chnlpriv.h b/arch/arm/plat-omap/include/dspbridge/chnlpriv.h
index ba00974..fbb05f3 100644
--- a/arch/arm/plat-omap/include/dspbridge/chnlpriv.h
+++ b/arch/arm/plat-omap/include/dspbridge/chnlpriv.h
@@ -94,14 +94,14 @@ struct chnl_mgrinfo {
  u8 dw_type;  /* Type of channel class library. */
  /* Channel handle, given the channel id. */
  struct chnl_object *chnl_obj;
- u32 open_channels; /* Number of open channels. */
- u32 max_channels; /* total # of chnls supported */
+ u8 open_channels; /* Number of open channels. */
+ u8 max_channels; /* total # of chnls supported */
 };
 
 /* Channel Manager Attrs: */
 struct chnl_mgrattrs {
  /* Max number of channels this manager can use. */
- u32 max_channels;
+ u8 max_channels;
  u32 word_size;  /* DSP Word size. */
 };
 
diff --git a/drivers/dsp/bridge/wmd/chnl_sm.c b/drivers/dsp/bridge/wmd/chnl_sm.c
index 8a10eee..ebb4827 100644
--- a/drivers/dsp/bridge/wmd/chnl_sm.c
+++ b/drivers/dsp/bridge/wmd/chnl_sm.c
@@ -389,7 +389,7 @@ dsp_status bridge_chnl_create(OUT struct chnl_mgr **phChnlMgr,
 {
  dsp_status status = DSP_SOK;
  struct chnl_mgr *chnl_mgr_obj = NULL;
- s32 max_channels;
+ u8 max_channels;
 
  /* Check DBC requirements: */
  DBC_REQUIRE(phChnlMgr != NULL);
-- 
1.6.0.4

             reply	other threads:[~2010-04-03 13:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-03 13:02 Hebbar, Shivananda [this message]
2010-04-22 21:43 ` [PATCH] DSPBRIDGE: Change max channels/open channels type to u8 Ramirez Luna, Omar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=830E2177532E7946BE0E82F0F4288505044E450B99@dbde02.ent.ti.com \
    --to=x0hebbar@ti.com \
    --cc=linux-omap@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.