Jaroslav Kysela eabe3228a8 [ALSA] Revert "alsa: add annotations to bitwise type snd_pcm_hw_param_t"
This reverts commit 36b34d2437104f323e09d7c6af6451d3c0b9c0cd.

From: Al Viro <viro@ZenIV.linux.org.uk>

WIW, *all* this stuff is not bitwise at all.  For crying out loud, half
of these types are routinely used as array indices and loop variables...

If anything, we want a different set of allowed operations - subtraction
between elements of type (yielding integer), addition/subtraction of
integer types not bigger than ours (yielding our type), comparisons,
assignments (=, +=, -=, passing to function as argument, return from
function, initializers) and second/third arguments in ?:.  With 0 *not*
being allowed as a constant of such type.

It's not bitwise; we may use the same infrastructure in sparse, but it
should be a separate class of types (__attribute__((affine))).

dma_addr_t is another candidate for the same treatment, but there we'll
need helpers for conversions to hw-acceptable form (dma_to_le32(), etc.)
and gradual conversion of drivers.

ALSA ones and pm mess are absolutely straightforward cases, though.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-06-26 08:53:05 +02:00
..
2008-01-31 17:29:41 +01:00
2008-01-31 17:29:48 +01:00
2008-01-31 17:29:13 +01:00
2007-10-16 15:58:10 +02:00
2006-03-22 10:24:57 +01:00
2008-04-29 19:01:56 +02:00
2006-01-03 12:18:06 +01:00
2007-02-09 09:01:14 +01:00
2008-06-16 09:32:31 +02:00
2008-05-27 15:56:20 +02:00
2008-06-16 09:42:25 +02:00