Thread (5 messages) 5 messages, 2 authors, 2007-05-14

Re: [PATCH 1/3] [POWERPC] 8xx: mpc885ads pcmcia support

flat view

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2007-05-14 21:21:47
Also in: lkml

On Wed, 09 May 2007 02:31:25 +0400
Vitaly Bordug [off-list ref] wrote:
quoted hunk ↗ jump to hunk
+/* 
+ * Some internal interrupt registers use an 8-bit mask for the interrupt
+ * level instead of a number.
+ */
+static inline uint mk_int_int_mask(uint mask) {
+	return (1 << (7 - (mask/2)));
+}
grumble.  "uint" isn't a favoured "type".  Please prefer to
use "unsigned int" if that's what is meant.  Or maybe u32,
if that's more appropriate - and it probably is, as we're
dealing with device registers here.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help