PD#170130: lcd: fix driver version null pointer mistake
Change-Id: Ic3589a8261f57c3eb7a231b5fb778f2421601abe
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
struct aml_lcd_drv_s *lcd_drv = aml_lcd_get_driver();
int ret;
- lcd_drv->version = LCD_DRV_VERSION;
lcd_drv->driver_init_pre = lcd_tablet_driver_init_pre;
lcd_drv->driver_disable_post = lcd_tablet_driver_disable_post;
lcd_drv->driver_init = lcd_tablet_driver_init;
int ret;
memset(lcd_output_name, 0, sizeof(lcd_output_name));
- lcd_drv->version = LCD_DRV_VERSION;
lcd_drv->driver_init_pre = lcd_tv_driver_init_pre;
lcd_drv->driver_disable_post = lcd_tv_driver_disable_post;
lcd_drv->driver_init = lcd_tv_driver_init;
return -1;
}
lcd_driver->data = (struct lcd_data_s *)match->data;
+ strcpy(lcd_driver->version, LCD_DRV_VERSION);
LCDPR("driver version: %s(%d-%s)\n",
lcd_driver->version,
lcd_driver->data->chip_type,
#define LCD_STATUS_ON (LCD_STATUS_IF_ON | LCD_STATUS_ENCL_ON)
struct aml_lcd_drv_s {
- char *version;
+ char version[20];
struct lcd_data_s *data;
unsigned char lcd_mode;
unsigned char lcd_status;