• Archit Taneja's avatar
    drm/msm/mdp5: Clean up interface assignment · 36d1364a
    Archit Taneja authored
    mdp5_interface struct contains data corresponding to a INTF
    instance in MDP5 hardware. This sturct is memcpy'd to the
    mdp5_encoder struct, and then later to the mdp5_ctl struct.
    
    Instead of copying around interface data, create mdp5_interface
    instances in mdp5_init, like how it's done currently done for
    pipes and layer mixers. Pass around the interface pointers to
    mdp5_encoder and mdp5_ctl. This simplifies the code, and allows
    us to decouple encoders from INTFs in the future if needed.
    Signed-off-by: default avatarArchit Taneja <architt@codeaurora.org>
    Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
    36d1364a
mdp5_cmd_encoder.c 6.37 KB