From patchwork Wed May 12 11:47:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manuel Lauss X-Patchwork-Id: 98992 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4CBlFCi029149 for ; Wed, 12 May 2010 11:47:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755644Ab0ELLrP (ORCPT ); Wed, 12 May 2010 07:47:15 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:56422 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755570Ab0ELLrO (ORCPT ); Wed, 12 May 2010 07:47:14 -0400 Received: by fxm15 with SMTP id 15so247231fxm.19 for ; Wed, 12 May 2010 04:47:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:cc:content-type; bh=MUwgxsj1d6X1nTa9lt91JxLvC5sEQFiXIwnbZHV+6Uk=; b=Hpjjkg3WNUhCcy11vE/r57hBsWhceGrW5U0kCluvLs5L+pAiWxi1Lesz8k8k4NCJgD NvQpe4LwQsE2IaMfAM0Z7wYKhhhR4HD86+IflXiwKzZPjrSRto92rdMqIerF6q2PfEDx X5WE4uffMEHmAPHL9rtcHgTCY2hCWrPBdf2nM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=PpgGWzL+lICSxTriEivsBigP6rEcht5g9zNss7eZMlSlghbjTYiyPBHcAvOefJMAl5 QBjCi8XPL8R4pFap0mbISWIYDqvTiziEWVIXtYFFK02KMTVWm8G+Ty1nkxuYaOW3ADz1 jb7OWoTcqMZt4NMDhn9z06hkbunXRW7rOB7ic= MIME-Version: 1.0 Received: by 10.223.23.83 with SMTP id q19mr8070124fab.12.1273664832272; Wed, 12 May 2010 04:47:12 -0700 (PDT) Received: by 10.223.106.12 with HTTP; Wed, 12 May 2010 04:47:12 -0700 (PDT) Date: Wed, 12 May 2010 13:47:12 +0200 Message-ID: Subject: WM9712 GPIO From: Manuel Lauss To: Mark Brown Cc: linux-input@vger.kernel.org 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]); Wed, 12 May 2010 11:47:16 +0000 (UTC) --- a/drivers/input/touchscreen/wm97xx-core.c +++ b/drivers/input/touchscreen/wm97xx-core.c @@ -200,7 +200,7 @@ void wm97xx_set_gpio(struct wm97xx *wm, u32 gpio, mutex_lock(&wm->codec_mutex); reg = wm97xx_reg_read(wm, AC97_GPIO_STATUS); - if (status & WM97XX_GPIO_HIGH) + if (status == WM97XX_GPIO_HIGH) reg |= gpio; else reg &= ~gpio;