From patchwork Fri Aug 6 06:30:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 117711 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o766Uj1G019814 for ; Fri, 6 Aug 2010 06:30:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760197Ab0HFGa3 (ORCPT ); Fri, 6 Aug 2010 02:30:29 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:41890 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752900Ab0HFGaY (ORCPT ); Fri, 6 Aug 2010 02:30:24 -0400 Received: by wyb39 with SMTP id 39so7432273wyb.19 for ; Thu, 05 Aug 2010 23:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=DeHUWGusHg+ZEoBufazbs+1bS3TZz5KTSk/cm7c/EQ4=; b=QgesxnVU/ZmH+HKReIYwhtgr6PiHEGEKVorSKHiY87dEvm4bCMEOaZsSbXBR2UB1bt RgCJ5bbgxF1ZMBfwS7q3VSXjxepI4psH9vXK2PEyjy58QGpCpiL9AiC7qacsCGzSjEWa DRTMbJs1aipABXevc9RzhLusVTEND44wo5+20= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=RKwouxjF/cs4xGseCmHyBt+g9UwW6WMcmKFhQe37ztCE5cmekEFc5FrQw1PcAqjhBA YizYKLfkzIEo6yWQMwtX8QgXaZsN8I/4sH9khhy2UiR/TtmbDDx5yXbKkKBSlNIpkiI2 nesdB8mOen5wQBIqGOrzRIFAu4bLEJaneupPo= Received: by 10.227.37.220 with SMTP id y28mr10143608wbd.79.1281076222811; Thu, 05 Aug 2010 23:30:22 -0700 (PDT) Received: from bicker ([205.177.176.130]) by mx.google.com with ESMTPS id a1sm1005934wbb.8.2010.08.05.23.30.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 05 Aug 2010 23:30:22 -0700 (PDT) Date: Fri, 6 Aug 2010 08:30:06 +0200 From: Dan Carpenter To: Dmitry Torokhov Cc: Alan Cox , linux-input@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [patch] input: cy8ctmg100_ts: signedness bug Message-ID: <20100806063006.GM9031@bicker> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 06 Aug 2010 06:30:45 +0000 (UTC) diff --git a/drivers/input/touchscreen/cy8ctmg110_ts.c b/drivers/input/touchscreen/cy8ctmg110_ts.c index 4eb7df0..f4e893f 100644 --- a/drivers/input/touchscreen/cy8ctmg110_ts.c +++ b/drivers/input/touchscreen/cy8ctmg110_ts.c @@ -96,7 +96,7 @@ static int cy8ctmg110_read_regs(struct cy8ctmg110 *tsc, unsigned char *data, unsigned char len, unsigned char cmd) { struct i2c_client *client = tsc->client; - unsigned int ret; + int ret; struct i2c_msg msg[2] = { /* first write slave position to i2c devices */ { client->addr, 0, 1, &cmd },