lkml.org 
[lkml]   [2022]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 7/8] drm/panel: elida-kd35t133: Implement .get_orientation callback
    Date
    To return the orientation property to drm/kms driver.

    Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    ---
    drivers/gpu/drm/panel/panel-elida-kd35t133.c | 8 ++++++++
    1 file changed, 8 insertions(+)

    diff --git a/drivers/gpu/drm/panel/panel-elida-kd35t133.c b/drivers/gpu/drm/panel/panel-elida-kd35t133.c
    index 80227617a4d6..079ed71f660c 100644
    --- a/drivers/gpu/drm/panel/panel-elida-kd35t133.c
    +++ b/drivers/gpu/drm/panel/panel-elida-kd35t133.c
    @@ -222,10 +222,18 @@ static int kd35t133_get_modes(struct drm_panel *panel,
    return 1;
    }

    +static enum drm_panel_orientation kd35t133_get_orientation(struct drm_panel *panel)
    +{
    + struct kd35t133 *ctx = panel_to_kd35t133(panel);
    +
    + return ctx->orientation;
    +}
    +
    static const struct drm_panel_funcs kd35t133_funcs = {
    .unprepare = kd35t133_unprepare,
    .prepare = kd35t133_prepare,
    .get_modes = kd35t133_get_modes,
    + .get_orientation = kd35t133_get_orientation,
    };

    static int kd35t133_probe(struct mipi_dsi_device *dsi)
    --
    2.36.1.255.ge46751e96f-goog
    \
     
     \ /
      Last update: 2022-06-01 11:49    [W:2.817 / U:0.100 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site