| /* |
| * LP50xx LED chip driver. |
| * |
| * Copyright (C) 2019 Google, Inc. |
| * |
| * This software is licensed under the terms of the GNU General Public |
| * License version 2, as published by the Free Software Foundation, and |
| * may be copied, distributed, and modified under those terms. |
| * |
| * 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. |
| * |
| */ |
| |
| #ifndef __LINUX_LP50XX_H |
| #define __LINUX_LP50XX_H |
| |
| #define MAX_NUM_LED 8 |
| struct lp50xx_platform_data { |
| int num_leds; |
| int reset_gpio; |
| int start_num[MAX_NUM_LED]; |
| |
| /* Initialize driver without resetting controller, lp5009 only */ |
| u8 soft_init; |
| }; |
| |
| #endif /* __LINUX_LP50XX_H */ |