From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp2-g21.free.fr ([212.27.42.2]) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1ORj4V-0007Hd-GV for barebox@lists.infradead.org; Thu, 24 Jun 2010 09:50:12 +0000 From: =?utf-8?q?Eric=20B=C3=A9nard?= Date: Thu, 24 Jun 2010 11:49:57 +0200 Message-Id: <1277372997-6472-3-git-send-email-eric@eukrea.com> In-Reply-To: <1277372997-6472-2-git-send-email-eric@eukrea.com> References: <1277372997-6472-1-git-send-email-eric@eukrea.com> <1277372997-6472-2-git-send-email-eric@eukrea.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-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 3/3] eukrea_cpuimx35: better handling of backlight To: barebox@lists.infradead.org c3RhcnQgd2l0aCBiYWNrbGlnaHQgZGlzYWJsZWQgYW5kIGVuYWJsZSBpdCBpZiB0aGUgbG9nbyBp cwpkaXNwbGF5ZWQuCgpTaWduZWQtb2ZmLWJ5OiBFcmljIELDqW5hcmQgPGVyaWNAZXVrcmVhLmNv bT4KLS0tCiBib2FyZC9ldWtyZWFfY3B1aW14MzUvZW52L2Jpbi9pbml0ICAgICAgfCAgICAyICsr CiBib2FyZC9ldWtyZWFfY3B1aW14MzUvZXVrcmVhX2NwdWlteDM1LmMgfCAgIDExICsrKysrKysr Ky0tCiAyIGZpbGVzIGNoYW5nZWQsIDExIGluc2VydGlvbnMoKyksIDIgZGVsZXRpb25zKC0pCgpk aWZmIC0tZ2l0IGEvYm9hcmQvZXVrcmVhX2NwdWlteDM1L2Vudi9iaW4vaW5pdCBiL2JvYXJkL2V1 a3JlYV9jcHVpbXgzNS9lbnYvYmluL2luaXQKaW5kZXggNDllNTRjNS4uNDYxMDI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