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