From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-qw0-f49.google.com ([209.85.216.49]) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1PU26k-0007kb-Ar for barebox@lists.infradead.org; Sat, 18 Dec 2010 19:06:19 +0000 Received: by qwj9 with SMTP id 9so1754983qwj.36 for ; Sat, 18 Dec 2010 11:06:16 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1292685309-32326-3-git-send-email-s.hauer@pengutronix.de> References: <1292685309-32326-1-git-send-email-s.hauer@pengutronix.de> <1292685309-32326-3-git-send-email-s.hauer@pengutronix.de> Date: Sat, 18 Dec 2010 20:06:16 +0100 Message-ID: From: Belisko Marek List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 2/7] basic LED support To: Sascha Hauer Cc: barebox@lists.infradead.org T24gU2F0LCBEZWMgMTgsIDIwMTAgYXQgNDoxNSBQTSwgU2FzY2hhIEhhdWVyIDxzLmhhdWVyQHBl bmd1dHJvbml4LmRlPiB3cm90ZToKPiBUaGlzIHBhdGNoIGFkZHMgY29yZSBmdW5jdGlvbmFsaXR5 IGZvciBjb250cm9sbGluZyBMRURzLgo+Cj4gU2lnbmVkLW9mZi1ieTogU2FzY2hhIEhhdWVyIDxz LmhhdWVyQHBlbmd1dHJvbml4LmRlPgo+IC0tLQo+IMKgZHJpdmVycy9LY29uZmlnIMKgIMKgIMKg fCDCoCDCoDEgKwo+IMKgZHJpdmVycy9NYWtlZmlsZSDCoCDCoCB8IMKgIMKgMSArCj4gwqBkcml2 ZXJzL2xlZC9LY29uZmlnIMKgfCDCoCDCoDYgKysrCj4gwqBkcml2ZXJzL2xlZC9NYWtlZmlsZSB8 IMKgIMKgMSArCj4gwqBkcml2ZXJzL2xl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