[PATCH v2 1/5] ARM: SAMSUNG: Add keypad device support

Mark Brown broonie at opensource.wolfsonmicro.com
Mon May 31 05:44:09 EDT 2010


On Sun, May 30, 2010 at 02:04:39PM +0900, Jassi Brar wrote:

> I believe on most implementations, if not all, sizeof char, short and
> int are resp
> 1, 2 and 4 bytes. whereas long denotes the native capacity of the arch.

This is very common for interoperability with code making the assumption
that you just made but you shouldn't rely on it, the C standard just
specifies minimum sizes and requires that char <= short <= int <= long.
The common issues to run into are int being made the native word size
and not having any sub word types at all.



More information about the linux-arm-kernel mailing list