Thread (7 messages) 7 messages, 3 authors, 2015-03-17

[Patch v4 2/2] dmaengine: Add ADM driver

From: sricharan at codeaurora.org <hidden>
Date: 2015-03-16 08:15:30
Also in: linux-arm-msm, linux-devicetree, lkml

Hi,

<snip>
quoted
quoted
+static int adm_get_blksize(unsigned int burst)
+{
+	int ret;
+
+	switch (burst) {
+	case 16:
+		ret = 0;
+		break;
+	case 32:
+		ret = 1;
+		break;
+	case 64:
+		ret = 2;
+		break;
+	case 128:
+		ret = 3;
+		break;
+	case 192:
+		ret = 4;
+		break;
+	case 256:
+		ret = 5;
+		break;
ffs(burst>>4) ?
that should work nicely.  thanks.
  Will not work for 192, 256 ?

Regards,
 Sricharan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help