Thread (24 messages) 24 messages, 8 authors, 2010-06-07
STALE5836d

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

From: Ben Dooks <ben-linux@fluff.org>
Date: 2010-05-30 04:51:51
Also in: linux-arm-kernel, linux-samsung-soc

On Sun, May 30, 2010 at 01:46:03PM +0900, Jassi Brar wrote:
On Sun, May 30, 2010 at 12:42 PM, Marek Vasut [off-list ref] wrote:
quoted
Dne Ne 30. kv??tna 2010 05:06:20 Joonyoung Shim napsal(a):
quoted
+struct samsung_kp_platdata {
+     const struct matrix_keymap_data *keymap_data;
+     unsigned int            rows;
+     unsigned int            cols;
+     unsigned int            rep;
I don't know, maybe using uint32_t here? On ARM, it doesn't matter so far as int
will be always 32bit, but maybe we should just type the variables well ?
I thought int was 32bits on all archs
No, the C standard doesn't make any guarantees about the size of types,
it is up to the implementation of the compiler. If I rember correctly
the only guarantee in the lanugage definition is that char->short->int->long
be that the next up the line be at-least as a  big as the one before.

For this, unsigned int should be fine. unsigned short would probably be
fine too. I'm not going to worry too much about this.
 
-- 
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help