Debian Codegraph @

src/mainboard/google/kukui/panel_krane.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include "panel.h"
4
5 static struct panel_description krane_panels[] = {
6 [0] = { .name = "AUO_KD101N80_45NA", .orientation = LB_FB_ORIENTATION_LEFT_UP},
7 /* [1] is only Rev3, can be reused. */
8 [1] = { .name = "BOE_TV101WUM_NL6", .orientation = LB_FB_ORIENTATION_LEFT_UP},
9 [11] = { .name = "BOE_TV101WUM_NL6", .orientation = LB_FB_ORIENTATION_LEFT_UP},
10 };
11
12 struct panel_description *get_panel_description(int panel_id)
13 {
14 if (panel_id < 0 || panel_id >= ARRAY_SIZE(krane_panels))
15 return NULL;
16
17 return get_panel_from_cbfs(&krane_panels[panel_id]);
18 }