[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1309935342.6088.5.camel@phoenix>
Date: Wed, 06 Jul 2011 14:55:42 +0800
From: Axel Lin <axel.lin@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Jin Park <jinyoungp@...dia.com>, Richard Purdie <rpurdie@...ys.net>
Subject: backlight: aat2870_bl: questions about setting max_current
hi Jin,
Just found some questions about setting max_current in current implementation of aat2870_bl:
1. Seems the implementation tests wrong value for setting aat2870_bl->max_current.
I think you mean:
diff --git a/drivers/video/backlight/aat2870_bl.c b/drivers/video/backlight/aat2870_bl.c
index f13a3f7..a8a2545 100644
--- a/drivers/video/backlight/aat2870_bl.c
+++ b/drivers/video/backlight/aat2870_bl.c
@@ -175,7 +175,7 @@ static int aat2870_bl_probe(struct platform_device *pdev)
else
aat2870_bl->channels = AAT2870_BL_CH_ALL;
- if (pdata->max_brightness > 0)
+ if (pdata->max_current > 0)
aat2870_bl->max_current = pdata->max_current;
else
aat2870_bl->max_current = AAT2870_CURRENT_27_9;
2. Even above issue is fixed, you still cannot differentiate below 2 cases:
a) if pdata->max_current is not set , or
b) pdata->max_current is set to AAT2870_CURRENT_0_45 ( which is also 0 ).
In either case, current implementation will set max_current to AAT2870_CURRENT_27_9.
Regards,
Axel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists