When the bus-format is set in the simple-panel devicetree
use this for BUS_FORMAT queries of the vpl interface.

Signed-off-by: Michael Grzeschik <[email protected]>
---
 drivers/video/simple-panel.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/video/simple-panel.c b/drivers/video/simple-panel.c
index 
931cbbe65f4c8fd1bb95011bbf2c3a499f5f53d3..63a032a9b87d30cda436e3459223a8e307ec0f0a
 100644
--- a/drivers/video/simple-panel.c
+++ b/drivers/video/simple-panel.c
@@ -130,6 +130,8 @@ static int simple_panel_ioctl(struct vpl *vpl, unsigned int 
port,
                return simple_panel_disable(panel);
        case VPL_GET_VIDEOMODES:
                return simple_panel_get_modes(panel, ptr);
+       case VPL_GET_BUS_FORMAT:
+               return of_property_read_u32(panel->dev->of_node, "bus-format", 
ptr);
        default:
                return 0;
        }

---
base-commit: cf3126e606c4eb1a4769575d0df951796c33b64e
change-id: 20251118-simple_panel-e3c423f3f422

Best regards,
-- 
Michael Grzeschik <[email protected]>


Reply via email to