From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Date: Wed, 31 Oct 2012 05:57:18 +0000 Subject: Re: [patch] Input: wacom - fix a check for WACOM_24HDT Message-Id: <20121031055718.GF31983@core.coreip.homeip.net> List-Id: References: <20121029084956.GA7506@elgon.mountain> In-Reply-To: <20121029084956.GA7506@elgon.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter Cc: Jason Gerecke , Chris Bagwell , Ping Cheng , Greg Kroah-Hartman , linux-input@vger.kernel.org, kernel-janitors@vger.kernel.org On Mon, Oct 29, 2012 at 11:49:56AM +0300, Dan Carpenter wrote: > 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 Thank you Dan, however I already have a patch from Jason Gerecke addressing this issue. > > diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c > index 2c1e12b..858ad44 100644 > --- a/drivers/input/tablet/wacom_sys.c > +++ b/drivers/input/tablet/wacom_sys.c > @@ -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