commit | 12e49bfea7d7467639ded394481ceaac97ffa8ef | [log] [tgz] |
---|---|---|
author | Jay Chokshi <jchokshi@codeaurora.org> | Fri Jul 22 16:24:39 2011 -0700 |
committer | Bryan Huntsman <bryanh@codeaurora.org> | Mon Oct 03 10:28:59 2011 -0700 |
tree | ec50a50fe9a68ab8ce4070ceb41c066cac257f7c | |
parent | e355164ba86d56b5574ef6b98405d9e6e377a35f [diff] |
pm8xxx-led: Add API to configure pm8xxx LEDs Add pm8xxx_led_configure API. It takes LED Id, mode, and maximum current to be set. Moreover, 1) Convert current values to actual current level using appropriate LED current factor. 2) Check brightness values against acceptable limits. Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>