diff options
author | Martin Persson <martin.persson@stericsson.com> | 2010-03-10 14:24:52 +0100 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2010-09-02 22:45:01 -0600 |
commit | 8bcd687720f0f3c131f06ca606e7d083473c08d3 (patch) | |
tree | 104d425d0f9fe6396facc006d9224c31ea2f8346 /include | |
parent | 16c38ee65b1ba497dc02055c9cdf80b24caeb117 (diff) |
Added driver for LED lp5521
Reviewed-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Signed-off-by: Martin Persson <martin.persson@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/i2c/lp5521.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/include/linux/i2c/lp5521.h b/include/linux/i2c/lp5521.h new file mode 100644 index 00000000000..0e0e9d3b678 --- /dev/null +++ b/include/linux/i2c/lp5521.h @@ -0,0 +1,43 @@ +/* + * lp5521.h - header for LP5521 LED driver + * + * Copyright (C) 2009 Nokia Corporation + * + * Contact: Felipe Balbi <felipe.balbi@xxxxxxxxx> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +#ifndef __LP5521_H_ +#define __LP5521_H_ + +enum lp5521_mode { + LP5521_MODE_LOAD, + LP5521_MODE_RUN, + LP5521_MODE_DIRECT_CONTROL, +}; + +struct lp5521_platform_data { + enum lp5521_mode mode; + + unsigned red_present:1; + unsigned green_present:1; + unsigned blue_present:1; + + const char *label; +}; + +#endif /* End of __LP5521_H */ |