linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] Input: ALPS Touchpad- Improve the performance of alps v5-protocol's touchpad
@ 2013-09-05  5:50 yunkang.tang
  2013-09-09 16:27 ` Dmitry Torokhov
  0 siblings, 1 reply; 3+ messages in thread
From: yunkang.tang @ 2013-09-05  5:50 UTC (permalink / raw)
  To: linux-input@vger.kernel.org
  Cc: dmitry.torokhov@gmail.com, yunkang.tang@cn.alps.com

<Change list>
- Add the macro definition for v5 device.

--- linux-3.11/drivers/input/mouse/alps.h.orig 2013-09-04 19:51:33.837135870 +0800
+++ linux-3.11/drivers/input/mouse/alps.h 2013-09-05 21:01:57.074314890 +0800
@@ -18,6 +18,10 @@
 #define ALPS_PROTO_V4 4
 #define ALPS_PROTO_V5 5
 
+#define DOLPHIN_COUNT_PER_ELECTRODE 64
+#define DOLPHIN_PROFILE_XOFFSET  8 /* [DOLPHIN] The number of the x-electrode offset value */
+#define DOLPHIN_PROFILE_YOFFSET  1 /* [DOLPHIN] The number of the y-electrode offset value */
+
 /**
  * struct alps_model_info - touchpad ID table
  * @signature: E7 response string to match.
@@ -69,7 +73,7 @@ struct alps_nibble_commands {
  * @y: Y position for ST.
  * @z: Z position for ST.
  * @first_mp: Packet is the first of a multi-packet report.
- * @is_mp: Packet is part of a multi-packet report.
+ * @is_mp: Packet is the last of a multi-packet report.
  * @left: Left touchpad button is active.
  * @right: Right touchpad button is active.
  * @middle: Middle touchpad button is active.
@@ -145,7 +149,7 @@ struct alps_data {
 
  int (*hw_init)(struct psmouse *psmouse);
  void (*process_packet)(struct psmouse *psmouse);
- void (*decode_fields)(struct alps_fields *f, unsigned char *p);
+ void (*decode_fields)(struct alps_fields *f, unsigned char *p, struct psmouse *psmouse);
  void (*set_abs_params)(struct alps_data *priv, struct input_dev *dev1);
 
  int prev_fin;


-Tommy

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/2] Input: ALPS Touchpad- Improve the performance of alps v5-protocol's touchpad
  2013-09-05  5:50 [PATCH 2/2] Input: ALPS Touchpad- Improve the performance of alps v5-protocol's touchpad yunkang.tang
@ 2013-09-09 16:27 ` Dmitry Torokhov
  2013-09-10 11:50   ` 答复: " yunkang.tang
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Torokhov @ 2013-09-09 16:27 UTC (permalink / raw)
  To: yunkang.tang@cn.alps.com; +Cc: linux-input@vger.kernel.org

Hi Tommy,

On Thu, Sep 05, 2013 at 05:50:55AM +0000, yunkang.tang@cn.alps.com wrote:
> <Change list>
> - Add the macro definition for v5 device.
> 
> --- linux-3.11/drivers/input/mouse/alps.h.orig 2013-09-04 19:51:33.837135870 +0800
> +++ linux-3.11/drivers/input/mouse/alps.h 2013-09-05 21:01:57.074314890 +0800
> @@ -18,6 +18,10 @@
>  #define ALPS_PROTO_V4 4
>  #define ALPS_PROTO_V5 5
>  
> +#define DOLPHIN_COUNT_PER_ELECTRODE 64
> +#define DOLPHIN_PROFILE_XOFFSET  8 /* [DOLPHIN] The number of the x-electrode offset value */
> +#define DOLPHIN_PROFILE_YOFFSET  1 /* [DOLPHIN] The number of the y-electrode offset value */
> +
>  /**
>   * struct alps_model_info - touchpad ID table
>   * @signature: E7 response string to match.
> @@ -69,7 +73,7 @@ struct alps_nibble_commands {
>   * @y: Y position for ST.
>   * @z: Z position for ST.
>   * @first_mp: Packet is the first of a multi-packet report.
> - * @is_mp: Packet is part of a multi-packet report.
> + * @is_mp: Packet is the last of a multi-packet report.
>   * @left: Left touchpad button is active.
>   * @right: Right touchpad button is active.
>   * @middle: Middle touchpad button is active.
> @@ -145,7 +149,7 @@ struct alps_data {
>  
>   int (*hw_init)(struct psmouse *psmouse);
>   void (*process_packet)(struct psmouse *psmouse);
> - void (*decode_fields)(struct alps_fields *f, unsigned char *p);
> + void (*decode_fields)(struct alps_fields *f, unsigned char *p, struct psmouse *psmouse);
>   void (*set_abs_params)(struct alps_data *priv, struct input_dev *dev1);
>  
>   int prev_fin;

Please do not separate changes in header files form changes in .c files
because patches need to be complete. If I were to apply this patch alone
it would break the compilation.

Thanks.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 3+ messages in thread

* 答复: [PATCH 2/2] Input: ALPS Touchpad- Improve the performance of alps v5-protocol's touchpad
  2013-09-09 16:27 ` Dmitry Torokhov
@ 2013-09-10 11:50   ` yunkang.tang
  0 siblings, 0 replies; 3+ messages in thread
From: yunkang.tang @ 2013-09-10 11:50 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-input@vger.kernel.org

Hi Dmitry,

>Please do not separate changes in header files form changes in .c files
>because patches need to be complete. If I were to apply this patch alone
>it would break the compilation.

Thanks for your expanation. I got that.

Thanks 
Best Regards
------------------------------------------------------
Tommy


On Thu, Sep 05, 2013 at 05:50:55AM +0000, yunkang.tang@cn.alps.com wrote:
> <Change list>
> - Add the macro definition for v5 device.
>
> --- linux-3.11/drivers/input/mouse/alps.h.orig 2013-09-04 19:51:33.837135870 +0800
> +++ linux-3.11/drivers/input/mouse/alps.h 2013-09-05 21:01:57.074314890 +0800
> @@ -18,6 +18,10 @@
>  #define ALPS_PROTO_V4 4
>  #define ALPS_PROTO_V5 5
>
> +#define DOLPHIN_COUNT_PER_ELECTRODE 64
> +#define DOLPHIN_PROFILE_XOFFSET  8 /* [DOLPHIN] The number of the x-electrode offset value */
> +#define DOLPHIN_PROFILE_YOFFSET  1 /* [DOLPHIN] The number of the y-electrode offset value */
> +
>  /**
>   * struct alps_model_info - touchpad ID table
>   * @signature: E7 response string to match.
> @@ -69,7 +73,7 @@ struct alps_nibble_commands {
>   * @y: Y position for ST.
>   * @z: Z position for ST.
>   * @first_mp: Packet is the first of a multi-packet report.
> - * @is_mp: Packet is part of a multi-packet report.
> + * @is_mp: Packet is the last of a multi-packet report.
>   * @left: Left touchpad button is active.
>   * @right: Right touchpad button is active.
>   * @middle: Middle touchpad button is active.
> @@ -145,7 +149,7 @@ struct alps_data {
>
>   int (*hw_init)(struct psmouse *psmouse);
>   void (*process_packet)(struct psmouse *psmouse);
> - void (*decode_fields)(struct alps_fields *f, unsigned char *p);
> + void (*decode_fields)(struct alps_fields *f, unsigned char *p, struct psmouse *psmouse);
>   void (*set_abs_params)(struct alps_data *priv, struct input_dev *dev1);
>
>   int prev_fin;

Please do not separate changes in header files form changes in .c files
because patches need to be complete. If I were to apply this patch alone
it would break the compilation.

Thanks.

--
Dmitry

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-10 11:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-05  5:50 [PATCH 2/2] Input: ALPS Touchpad- Improve the performance of alps v5-protocol's touchpad yunkang.tang
2013-09-09 16:27 ` Dmitry Torokhov
2013-09-10 11:50   ` 答复: " yunkang.tang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).