Input: wacom - fix a check for WACOM_24HDT
Subsystems (3)
PATCH 1/1 Input: wacom - fix a check for WACOM_24HDT
The current condition is always true. From the context, it looks like we should be checking if ->type = WACOM_24HDT.
Signed-off-by Dan Carpenter <[email protected]>
drivers/input/tablet/wacom_sys.c +1 -1
@@ -391,7 +391,7 @@ static int wacom_parse_hid(struct usb_interface *intf, features->pktlen =WACOM_PKGLEN_TPC2FG ; } -if (features->type =MTSCREEN ||WACOM_24HDT ) +if (features->type =MTSCREEN || features->type =WACOM_24HDT ) features->pktlen =WACOM_PKGLEN_MTOUCH ;if (features->type =BAMBOO_PT ) {
Dmitry Torokhov
maintainerQuoted 4 lines · Dan Carpenter
The current condition is always true. From the context, it looks like we should be checking if ->type =
WACOM_24HDT.Signed-off-by Dan Carpenter <[email protected]>
Thank you Dan, however I already have a patch from Jason Gerecke addressing this issue.
Quoted 14 lines
drivers/input/tablet/wacom_sys.c +1
-1@@ -391,7 +391,7 @@ static int wacom_parse_hid(struct usb_interface *intf, features->pktlen =WACOM_PKGLEN_TPC2FG ; } -if (features->type =MTSCREEN ||WACOM_24HDT ) +if (features->type =MTSCREEN || features->type =WACOM_24HDT ) features->pktlen =WACOM_PKGLEN_MTOUCH ;if (features->type =BAMBOO_PT ) {
Signature · 1 line
Dmitry