From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-lb0-x22f.google.com ([2a00:1450:4010:c04::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YAyPW-0008J3-NF for barebox@lists.infradead.org; Tue, 13 Jan 2015 10:09:20 +0000 Received: by mail-lb0-f175.google.com with SMTP id z11so1726034lbi.6 for ; Tue, 13 Jan 2015 02:08:55 -0800 (PST) Date: Tue, 13 Jan 2015 13:11:38 +0300 From: Antony Pavlov Message-Id: <20150113131138.04775a3a0c2f7689bb35a398@gmail.com> In-Reply-To: References: <20150113062416.GB30554@ns203013.ovh.net> <1421130376-32428-1-git-send-email-plagnioj@jcrosoft.com> <1421130376-32428-2-git-send-email-plagnioj@jcrosoft.com> <20150113115840.3309f5fa5a331549eac9d028@gmail.com> Mime-Version: 1.0 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" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 2/6] raspberry-pi: add leds support To: Jean-Christophe PLAGNIOL-VILLARD Cc: barebox@lists.infradead.org T24gVHVlLCAxMyBKYW4gMjAxNSAxNjoxNTo0NSArMDgwMApKZWFuLUNocmlzdG9waGUgUExBR05J T0wtVklMTEFSRCA8cGxhZ25pb2pAamNyb3NvZnQuY29tPiB3cm90ZToKCj4gCj4gPiBPbiBKYW4g MTMsIDIwMTUsIGF0IDM6NTggUE0sIEFudG9ueSBQYXZsb3YgPGFudG9ueW5wYXZsb3ZAZ21haWwu Y29tPiB3cm90ZToKPiA+IAo+ID4gT24gVHVlLCAxMyBKYW4gMjAxNSAwNzoyNjoxMiArMDEwMAo+ ID4gSmVhbi1DaHJpc3RvcGhlIFBMQUdOSU9MLVZJTExBUkQgPHBsYWduaW9qQGpjcm9zb2Z0LmNv bT4gd3JvdGU6Cj4gPiAKPiA+IE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