Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754073AbZKBIt7 (ORCPT ); Mon, 2 Nov 2009 03:49:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752894AbZKBIt7 (ORCPT ); Mon, 2 Nov 2009 03:49:59 -0500 Received: from mail-iw0-f180.google.com ([209.85.223.180]:49326 "EHLO mail-iw0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753832AbZKBIt6 (ORCPT ); Mon, 2 Nov 2009 03:49:58 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=eQ/FmUTuYHPiVuxhVXC5mgJwfEaoAOwL927wFyN+irasCH2MkcT2y5/GS8I2LKaaiO UrOm9aqAMvFdEtMY70P871wXHQEPK4GhbAN6K/ACf5NoYfergqZW8u/eZMCplZktSzIc dWjG8i95n4bOWe7S5DL35kKvuYQ/ot2n7Ou4c= MIME-Version: 1.0 Date: Mon, 2 Nov 2009 17:50:02 +0900 Message-ID: <90b950fc0911020050q3bc3fae8j954ec6ed73d79b5@mail.gmail.com> Subject: [patch] added brightness feature to lcd class. From: InKi Dae To: linux-fbdev-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Cc: Kyungmin Park Content-Type: multipart/mixed; boundary=0015177411469e53b204775f7660 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5236 Lines: 88 --0015177411469e53b204775f7660 Content-Type: text/plain; charset=ISO-8859-1 This patch adds brightness feature to lcd class. (kernel/driver/video/backlight/lcd.c) In the past, most of the lcd panels for embedded system was TFT-LCD Panel needing backlight device. But now AMOLED LCD Panel appeared so we should consider brightness control for AMOLED Panel. For the time being, I used backlight fake driver for brightness control of AMOLED LCD Panel. But this way is not good, so I propose to add brightness feature to lcd class. For this, I attached patch file and if my proposal is approved Then I will send s6e63m0 and tl2796 AMOLED lcd panel driver based on lcd class modified soon. signed-off-by : InKi Dae Best Regards, InKi Dae. --0015177411469e53b204775f7660 Content-Type: application/octet-stream; name="lcd.patch" Content-Disposition: attachment; filename="lcd.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g1iz2s3l0 ZGlmZiAtLWdpdCBhL2RyaXZlcnMvdmlkZW8vYmFja2xpZ2h0L2xjZC5jIGIvZHJpdmVycy92aWRl by9iYWNrbGlnaHQvbGNkLmMKaW5kZXggYjY0NDk0Ny4uY2MxOWVlOSAxMDA2NDQKLS0tIGEvZHJp dmVycy92aWRlby9iYWNrbGlnaHQvbGNkLmMKKysrIGIvZHJpdmVycy92aWRlby9iYWNrbGlnaHQv bGNkLmMKQEAgLTE2NCw2ICsxNjQsNTMgQEAgc3RhdGljIHNzaXplX3QgbGNkX3Nob3dfbWF4X2Nv bnRyYXN0KHN0cnVjdCBkZXZpY2UgKmRldiwKIAlyZXR1cm4gc3ByaW50ZihidWYsICIlZFxuIiwg bGQtPnByb3BzLm1heF9jb250cmFzdCk7CiB9CiAKK3N0YXRpYyBzc2l6ZV90IGxjZF9zaG93X2Jy aWdodG5lc3Moc3RydWN0IGRldmljZSAqZGV2LAorCQlzdHJ1Y3QgZGV2aWNlX2F0dHJpYnV0ZSAq YXR0ciwgY2hhciAqYnVmKQoreworCWludCByYyA9IC1FTlhJTzsKKwlzdHJ1Y3QgbGNkX2Rldmlj ZSAqbGQgPSB0b19sY2RfZGV2aWNlKGRldik7CisKKwltdXRleF9sb2NrKCZsZC0+b3BzX2xvY2sp OworCWlmIChsZC0+b3BzICYmIGxkLT5vcHMtPmdldF9icmlnaHRuZXNzKQorCQlyYyA9IHNwcmlu dGYoYnVmLCAiJWRcbiIsIGxkLT5vcHMtPmdldF9icmlnaHRuZXNzKGxkKSk7CisJbXV0ZXhfdW5s b2NrKCZsZC0+b3BzX2xvY2spOworCisJcmV0dXJuIHJjOworfQorCitzdGF0aWMgc3NpemVfdCBs Y2Rfc3RvcmVfYnJpZ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kpICovCisJaW50IG1heF9icmln aHRuZXNzOwogfTsKIAogc3RydWN0IGxjZF9vcHMgewpAQCAtNDYsNiArNDksMTAgQEAgc3RydWN0 IGxjZF9vcHMgewogCWludCAoKmdldF9jb250cmFzdCkoc3RydWN0IGxjZF9kZXZpY2UgKik7CiAJ LyogU2V0IExDRCBwYW5lbCBjb250cmFzdCAqLwogICAgICAgICBpbnQgKCpzZXRfY29udHJhc3Qp KHN0cnVjdCBsY2RfZGV2aWNlICosIGludCBjb250cmFzdCk7CisJLyogR2V0IHRoZSBjdXJyZW50 IGJyaWdobmVzcyBzZXR0aW5nIChvbmx5IEFNT0xFRCBsY2QgcGFuZWwpICovCisJaW50ICgqZ2V0 X2JyaWdodG5lc3MpKHN0cnVjdCBsY2RfZGV2aWNlICopOworCS8qIFNldCBMQ0QgcGFuZWwgYnJp Z2h0bmVzcyAob25seSBBTU9MRUQgbGNkIHBhbmVsKSAqLworCWludCAoKnNldF9icmlnaHRuZXNz KShzdHJ1Y3QgbGNkX2RldmljZSAqLCBpbnQgYnJpZ2h0bmVzcyk7CiAJLyogU2V0IExDRCBwYW5l bCBtb2RlIChyZXNvbHV0aW9ucyAuLi4pICovCiAJaW50ICgqc2V0X21vZGUpKHN0cnVjdCBsY2Rf ZGV2aWNlICosIHN0cnVjdCBmYl92aWRlb21vZGUgKik7CiAJLyogQ2hlY2sgaWYgZ2l2ZW4gZnJh bWVidWZmZXIgZGV2aWNlIGlzIHRoZSBvbmUgTENEIGlzIGJvdW5kIHRvOwo= --0015177411469e53b204775f7660-- -- 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/