Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757657AbYB2GOr (ORCPT ); Fri, 29 Feb 2008 01:14:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752868AbYB2GOi (ORCPT ); Fri, 29 Feb 2008 01:14:38 -0500 Received: from palinux.external.hp.com ([192.25.206.14]:53258 "EHLO mail.parisc-linux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752677AbYB2GOh (ORCPT ); Fri, 29 Feb 2008 01:14:37 -0500 Date: Thu, 28 Feb 2008 23:14:35 -0700 From: Matthew Wilcox To: Andrew Morton Cc: Mark Pearson , Karol Kozimor , Julia Lawall , corentincj@iksaif.net, sziwan@users.sourceforge.net, acpi4asus-user@lists.sourceforge.net, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Len Brown Subject: Re: [PATCH 2/9] drivers/acpi/asus_acpi.c: Correct use of ! and & Message-ID: <20080229061435.GE19198@parisc-linux.org> References: <7C626792-02A6-4BE6-B5F2-D75899F3990C@hell.org.pl> <47C5ABFB.3050607@googlemail.com> <20080228215503.b942bb3c.akpm@linux-foundation.org> <20080229061023.GD19198@parisc-linux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080229061023.GD19198@parisc-linux.org> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 959 Lines: 28 On Thu, Feb 28, 2008 at 11:10:23PM -0700, Matthew Wilcox wrote: > On Thu, Feb 28, 2008 at 09:55:03PM -0800, Andrew Morton wrote: > > if (invert) /* invert target value */ > > - led_out = !led_out & 0x1; > > + led_out = !led_out; > > > > if (!write_acpi_int(hotk->handle, ledname, led_out, NULL)) > > But now you're writing 0xffffffff instead of 1. I think the suggestion > of led_out ^= 1 was the correct one. ! is not ~ ! is not ~ ! is not ~ .... I'll go to sleep now. -- Intel are signing my paycheques ... these opinions are still mine "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/