All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Stelian Pop <stelian@popies.net>
Cc: YOSHIFUJI Hideaki / ???????????? <yoshfuji@linux-ipv6.org>,
	nicolas@boichat.ch, linux-usb-devel@lists.sourceforge.net,
	johannes@sipsolutions.net,
	mactel-linux-devel@lists.sourceforge.net,
	dtor_core@ameritech.net, linux-kernel@vger.kernel.org,
	frank@scirocco-5v-turbo.de, petero2@telia.com,
	linux-kernel@hansmi.ch
Subject: Re: [PATCH] MacBook Pro touchpad support
Date: Tue, 18 Apr 2006 09:41:37 -0700	[thread overview]
Message-ID: <20060418164137.GA31841@kroah.com> (raw)
In-Reply-To: <1145373471.23139.10.camel@localhost.localdomain>

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

  parent reply	other threads:[~2006-04-18 16:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-18 11:07 [PATCH] MacBook Pro touchpad support Nicolas Boichat
2006-04-18 12:25 ` YOSHIFUJI Hideaki / 吉藤英明
     [not found]   ` <1145373471.23139.10.camel@localhost.localdomain>
2006-04-18 16:41     ` Greg KH [this message]
2006-04-19 11:33       ` Nicolas Boichat
2006-04-19 19:50         ` Greg KH
2006-04-19 21:36           ` Nicolas Boichat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060418164137.GA31841@kroah.com \
    --to=greg@kroah.com \
    --cc=dtor_core@ameritech.net \
    --cc=frank@scirocco-5v-turbo.de \
    --cc=johannes@sipsolutions.net \
    --cc=linux-kernel@hansmi.ch \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=mactel-linux-devel@lists.sourceforge.net \
    --cc=nicolas@boichat.ch \
    --cc=petero2@telia.com \
    --cc=stelian@popies.net \
    --cc=yoshfuji@linux-ipv6.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.