u-boot->backligt:fix pwm dts cannot read the really value

This commit is contained in:
cjp
2020-08-21 18:17:32 +08:00
parent 78422c4c31
commit ef441343ab

View File

@ -113,7 +113,7 @@ static int rk_bl_parse_dt(const void *blob)
return -ENODEV;
}
bl.id = data[1];
bl.id = fdtdec_get_int(blob, bl.node, "rockchip,pwm_id", 1);
bl.period = data[2];
pwm_node = fdt_node_offset_by_phandle(blob, data[0]);
#ifdef CONFIG_ROCKCHIP_ARCH64