summaryrefslogtreecommitdiffstats
path: root/drivers/staging/ozwpan/ozpd.h
diff options
context:
space:
mode:
authorChristoph Jaeger2014-08-04 14:54:52 +0200
committerGreg Kroah-Hartman2014-08-16 21:23:12 +0200
commita9686e786896297f9f1d74a2cac4ffccc7b3e50e (patch)
tree3b3f32c7c7be7c8126855dbdee7a0e226d3718dc /drivers/staging/ozwpan/ozpd.h
parentstaging: ozwpan: Remove dead code (diff)
downloadkernel-qcow2-linux-a9686e786896297f9f1d74a2cac4ffccc7b3e50e.tar.gz
kernel-qcow2-linux-a9686e786896297f9f1d74a2cac4ffccc7b3e50e.tar.xz
kernel-qcow2-linux-a9686e786896297f9f1d74a2cac4ffccc7b3e50e.zip
staging: ozwpan: Simplify app interface
Simplify the somewhat overcomplicated application interface; improves readability and saves a bunch of lines. Use designated struct initializers for clarity. Signed-off-by: Christoph Jaeger <email@christophjaeger.info> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ozwpan/ozpd.h')
-rw-r--r--drivers/staging/ozwpan/ozpd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/ozwpan/ozpd.h b/drivers/staging/ozwpan/ozpd.h
index ad5fe7a6e619..3b3b3ce9f9e4 100644
--- a/drivers/staging/ozwpan/ozpd.h
+++ b/drivers/staging/ozwpan/ozpd.h
@@ -81,8 +81,8 @@ struct oz_pd {
unsigned long presleep;
unsigned long keep_alive;
struct oz_elt_buf elt_buff;
- void *app_ctx[OZ_APPID_MAX];
- spinlock_t app_lock[OZ_APPID_MAX];
+ void *app_ctx[OZ_NB_APPS];
+ spinlock_t app_lock[OZ_NB_APPS];
int max_tx_size;
u8 mode;
u8 ms_per_isoc;