Re: [PATCH] MacBook Pro touchpad support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In article <1145358431.14816.18.camel@localhost> (at Tue, 18 Apr 2006 13:07:11 +0200), Nicolas Boichat <[email protected]> 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?

>  
> +static inline int atp_is_geyser_3(struct atp *dev)
> +{
> +	int productId = le16_to_cpu(dev->udev->descriptor.idProduct);
> +
> +	return (productId == GEYSER3_ANSI_PRODUCT_ID) ||
> +		(productId == GEYSER3_ISO_PRODUCT_ID) ||
> +		(productId == GEYSER3_JIS_PRODUCT_ID);
> +}
> +
>  static int atp_calculate_abs(int *xy_sensors, int nb_sensors, int fact,
>  			     int *z, int *fingers)
>  {

If no, use int16 productId.

--yoshfuji
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux