aboutsummaryrefslogtreecommitdiff
path: root/include/linux/lp8556.h
blob: 9b88ffbaefa5ba7e883ca1e0339ec2caeb725ae9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
 * Copyright (C) 2010-2012 Motorola, LLC.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * 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 _LINUX_LED_LD_LP8556_H__
#define _LINUX_LED_LD_LP8556_H__

#ifdef __KERNEL__

struct lp8556_eeprom_data {
	u8 flag;
	u8 addr;
	u8 data;
};

struct lp8556_platform_data {
	u8 power_up_brightness;
	u8 dev_ctrl_config;
	u8 brightness_control;
	u8 dev_id;
	u8 direct_ctrl;
	struct lp8556_eeprom_data *eeprom_table;
	int eeprom_tbl_sz;
	int scaling_factor;
	int enable_gpio;
};

#endif	/* __KERNEL__ */
#endif	/* _LINUX_LED_LD_LP8556_H__ */