lichee/linux-5.4/drivers/video/fbdev/sunxi/disp2/disp/de/disp_lcd.c
static s32 disp_lcd_pin_cfg(struct disp_device *lcd, u32 bon)
{
...
sprintf(dev_name, "lcd%d", lcd->disp);
disp_sys_pin_set_state(dev_name,
(bon == 1) ?
DISP_PIN_STATE_ACTIVE : DISP_PIN_STATE_SLEEP);
...
}
lichee/linux-5.4/drivers/video/fbdev/sunxi/disp2/disp/disp_sys_intf.c
int disp_sys_pin_set_state(char *dev_name, char *name)
{
...
len = sprintf(compat, "allwinner,sunxi-%s", dev_name);
if (len > 32)
__wrn("size of mian_name is out of range\n");
....
}
找到了,貌似调用过程有点曲折。