lkml.org 
[lkml]   [2006]   [Apr]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] MacBook Pro touchpad support
On Tue, Apr 18, 2006 at 05:17:51PM +0200, Stelian Pop wrote:
> Le mardi 18 avril 2006 ?? 21:25 +0900, YOSHIFUJI Hideaki / ???????????? a
> ??crit :
> > In article <1145358431.14816.18.camel@localhost> (at Tue, 18 Apr 2006 13:07:11 +0200), Nicolas Boichat <nicolas@boichat.ch> says:
> >
> > > @@ -147,13 +164,22 @@ MODULE_PARM_DESC(debug, "Activate debugg
> > > /* Checks if the device a Geyser 2 (ANSI, ISO, JIS) */
> > > static inline int atp_is_geyser_2(struct atp *dev)
> > > {
> > > - int16_t productId = le16_to_cpu(dev->udev->descriptor.idProduct);
> > > + int productId = le16_to_cpu(dev->udev->descriptor.idProduct);
> > >
> > > return (productId == GEYSER_ANSI_PRODUCT_ID) ||
> > > (productId == GEYSER_ISO_PRODUCT_ID) ||
> > > (productId == GEYSER_JIS_PRODUCT_ID);
> > > }
> >
> > Any good reasons to change this?
>
> Because the use of a generic integer type is generally preferred over a
> fixed size type. And even if a fixed size was needed, u16/s16 would be
> more appropriate.

u16 is needed, s16 for USB ids is not correct.

And that int16_t crud is not correct either way :)

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-04-18 18:45    [W:0.064 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site