/* With most lcd drivers the line length is set up by calculating it from panel_info parameters. Some drivers need to calculate the line length differently, so make the function weak to allow overriding it.  */
__weak int lcd_get_size(int *line_length)
/* With most lcd drivers the line length is set up by calculating it from panel_info parameters. Some drivers need to calculate the line length differently, so make the function weak to allow overriding it.  */
__weak int lcd_get_size(int *line_length)
{
	*line_length = (panel_info.vl_col * NBITS(panel_info.vl_bpix)) / 8;
	return *line_length * panel_info.vl_row;
}