From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-vw0-f49.google.com ([209.85.212.49]) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1PU00k-0008UO-8S for barebox@lists.infradead.org; Sat, 18 Dec 2010 16:51:59 +0000 Received: by vws5 with SMTP id 5so652564vws.36 for ; Sat, 18 Dec 2010 08:51:56 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1292685309-32326-5-git-send-email-s.hauer@pengutronix.de> References: <1292685309-32326-1-git-send-email-s.hauer@pengutronix.de> <1292685309-32326-5-git-send-email-s.hauer@pengutronix.de> Date: Sat, 18 Dec 2010 17:51:56 +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 4/7] LED: Add LED trigger support To: Sascha Hauer Cc: barebox@lists.infradead.org SGksCgpPbiBTYXQsIERlYyAxOCwgMjAxMCBhdCA0OjE1IFBNLCBTYXNjaGEgSGF1ZXIgPHMuaGF1 ZXJAcGVuZ3V0cm9uaXguZGU+IHdyb3RlOgo+IFRoaXMgcGF0Y2ggYWxsb3dzIHRvIGFzc29jaWF0 ZSBMRURzIHdpdGggY2VydGFpbiB0cmlnZ2Vycywgc3VjaAo+IGFzIGhlYXJ0YmVhdCBvciBuZXR3 b3JrIGFjdGl2aXR5Lgo+Cj4gU2lnbmVkLW9mZi1ieTogU2FzY2hhIEhhdWVyIDxzLmhhdWVyQHBl bmd1dHJvbml4LmRlPgo+IC0tLQo+IMKgZHJpdmVycy9sZWQvS2NvbmZpZyDCoHwgwqAgwqAzICsr Kwo+IMKgZHJpdmVycy9sZWQvTWFrZWZpbGUgfCDCoCDCoDEgKwo+IMKgaW5jbHVkZS9sZWQuaCDC oCDCoCDCoCDCoHwgw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