summaryrefslogtreecommitdiffstats
path: root/drivers/block/rsxx/rsxx.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-04-03 19:15:57 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-04-03 19:15:57 +0200
commita7c1a644e16400a33e122f2b03c6a34240001b49 (patch)
tree21c2dbede682ed656d1660d7fee657d3aea2c4f1 /drivers/block/rsxx/rsxx.h
parentASoC: samsung: remove last traces of neo1973-gta01 (diff)
parentASoC: Samsung: set drvdata before adding secondary device (diff)
downloadlinux-a7c1a644e16400a33e122f2b03c6a34240001b49.tar.xz
linux-a7c1a644e16400a33e122f2b03c6a34240001b49.zip
Merge branch 'fix/samsung' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-samsung
Diffstat (limited to 'drivers/block/rsxx/rsxx.h')
-rw-r--r--drivers/block/rsxx/rsxx.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/block/rsxx/rsxx.h b/drivers/block/rsxx/rsxx.h
index 2e50b65902b7..24ba3642bd89 100644
--- a/drivers/block/rsxx/rsxx.h
+++ b/drivers/block/rsxx/rsxx.h
@@ -27,15 +27,17 @@
/*----------------- IOCTL Definitions -------------------*/
+#define RSXX_MAX_DATA 8
+
struct rsxx_reg_access {
__u32 addr;
__u32 cnt;
__u32 stat;
__u32 stream;
- __u32 data[8];
+ __u32 data[RSXX_MAX_DATA];
};
-#define RSXX_MAX_REG_CNT (8 * (sizeof(__u32)))
+#define RSXX_MAX_REG_CNT (RSXX_MAX_DATA * (sizeof(__u32)))
#define RSXX_IOC_MAGIC 'r'