| 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | #ifndef __LCD_MIPID_H |
| 3 | #define __LCD_MIPID_H |
| 4 | |
| 5 | enum mipid_test_num { |
| 6 | MIPID_TEST_RGB_LINES, |
| 7 | }; |
| 8 | |
| 9 | enum mipid_test_result { |
| 10 | MIPID_TEST_SUCCESS, |
| 11 | MIPID_TEST_INVALID, |
| 12 | MIPID_TEST_FAILED, |
| 13 | }; |
| 14 | |
| 15 | #ifdef __KERNEL__ |
| 16 | |
| 17 | struct mipid_platform_data { |
| 18 | int data_lines; |
| 19 | |
| 20 | void (*set_bklight_level)(struct mipid_platform_data *pdata, |
| 21 | int level); |
| 22 | int (*get_bklight_level)(struct mipid_platform_data *pdata); |
| 23 | int (*get_bklight_max)(struct mipid_platform_data *pdata); |
| 24 | }; |
| 25 | |
| 26 | #endif |
| 27 | |
| 28 | #endif |
| 29 | |