From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felipe Balbi Subject: Re: [PATCH] Add TI TSC2005 Touchscreen driver Date: Mon, 8 Dec 2008 20:28:12 +0200 Message-ID: <20081208182812.GD13076@frodo> References: <5d5443650812080949h5aff6010mb7341f581841f126@mail.gmail.com> Reply-To: me@felipebalbi.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <5d5443650812080949h5aff6010mb7341f581841f126@mail.gmail.com> Sender: linux-omap-owner@vger.kernel.org To: Trilok Soni Cc: David Brownell , dmitry.torokhov@gmail.com, "linux-omap@vger.kernel.org Mailing List" , linux-kernel@vger.kernel.org, spi-devel-general@lists.sourceforge.net, linux-input@vger.kernel.org, lauri.leukkunen@nokia.com List-Id: linux-input@vger.kernel.org On Mon, Dec 08, 2008 at 11:19:53PM +0530, Trilok Soni wrote: > +static ssize_t tsc2005_disable_store(struct device *dev, > + struct device_attribute *attr, > + const char *buf, size_t count) > +{ > + struct tsc2005 *tsc = dev_get_drvdata(dev); > + unsigned long res; > + int i; > + > + i = strict_strtoul(buf, 10, &res); > + i = i ? 1 : 0; shouldn't this be i = res ? 1 : 0; ?? -- balbi