Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5858515ioo; Wed, 1 Jun 2022 14:16:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynHiVwqfhLNXQ9OhZRqE2UsHsbaSVE57t8GgPcbRcdWrgYWNKHh40oSGYrt5vPhwjFUEBI X-Received: by 2002:a17:90a:9b0d:b0:1dc:e81d:6c18 with SMTP id f13-20020a17090a9b0d00b001dce81d6c18mr1426639pjp.72.1654118161951; Wed, 01 Jun 2022 14:16:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654118161; cv=none; d=google.com; s=arc-20160816; b=WRJWD7Ruip5QlsMs/YRJg9/cCrvYklEEjUj/YvcV/jSMsB32Y5+KeIPmGtITN4lLeH zbIUVU1AIOkJsNeStC5FsfvKmAXGgdsp597G9iiiq3nOTiNpLJHeEwKxgRKZe0W0lk0F uazTNDWIquks2ZsIv5BliwI4ycBIt6blCbUWLX173tTX7x7OGhnu90Lfsqr+P/TrC0FA pR90+xW1y9J/Mwg3qzriRSN5yA6+mykla+xvxDrGMtC03V7paAEAlparmkq2HLYMvjSM hF5BNLY5mHDz0nNXSIRJD6rb0U1bOf1duWnH6Mfs3cdCPL69c+44n/B120OWp3q5V3Tc 7b4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jVLAPZRG5UqIkFmmis3uM10FnfT5Ljau+xefKKOpEpE=; b=A5bDb1ioXuqRnVcoc//vhiku3k81XupY35KrvcUJZM0MdesFkFlOAx/Uu6I7gHTE0O 5zkWQb4WUqwGqxXZxSHYmUYvn0y/j6CtpmZmHPH8BNyWCQSg6K4a/MaxDgtC/gE5boqa QqkdhOtesi60wkj5vhi44aMXyMyzza8OqX/wR8l46hUZbWMa738wJLNI6BWGZ64vRB+y thJC7DPSBZOTjeATbX3vhrIn+JCVb9agxRKOW9iig0GHEGDHX2oTi498kQq23i8/nXA3 s/F438pdmEBl5oOSwgBF5hlxXUlC/hSY+8LgdwIM4ka2/gzG0s+kaLEwSqwAMIFLxdkZ fBWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OE93Xi6f; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id f9-20020a056a00238900b00518467340b6si3775780pfc.153.2022.06.01.14.16.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:16:01 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OE93Xi6f; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EB5ED2DE7C4; Wed, 1 Jun 2022 13:07:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351462AbiFAJrN (ORCPT + 99 others); Wed, 1 Jun 2022 05:47:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351430AbiFAJrD (ORCPT ); Wed, 1 Jun 2022 05:47:03 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC5F611449 for ; Wed, 1 Jun 2022 02:47:01 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id q18so1274321pln.12 for ; Wed, 01 Jun 2022 02:47:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jVLAPZRG5UqIkFmmis3uM10FnfT5Ljau+xefKKOpEpE=; b=OE93Xi6fuFvNjrUPzVoJX4DICUjzwZ0FrNbASk4QhkljwjjdO/t0+U9bsHLt3Nq16+ 2jXyFGb9vQV2JODWz1J1HY7MqWvFdGQfxoZCRMPGD0flte9sS8xfM5OvEXrqzlCd8Bhi wM7/e6IqFwZwACP7InwILEx1YGycyNgsKSh5I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jVLAPZRG5UqIkFmmis3uM10FnfT5Ljau+xefKKOpEpE=; b=lTYB5ggV12j4CyDrJMGjg+zHqbiDUc2ktW6eEAIqlIZAxonyRSmEA2Iq301g7fcJZJ /y9n02EZbufihCfKe9wF2XmKAqIsQTIa86s2+7l2GPnzjicjzXbjQR1cEcbbQjVMN0gH BbOzw35daB0ACpHEdb0JzeY4yEeMbXVSXFl5GWdgKftF2dO7ymimVR2EvPW7K0VkIWI/ xdSZVuOciokzkb3tou/cAQ9I791V5cdJDk4zZu/umUTtbzjgZHZuW11D2StZ67Vo/h1d 64aWj7GVPSlRb92hXzvQB2AIgNIfrCLtqx+j3jJeXsIrIpKFf2HQ72X7c+8xBRa3KHcm ou7Q== X-Gm-Message-State: AOAM5308Tf/Fe1clZ3CbzuIXxpfdOzcgcvBJ4vKnxccimEwS5DhqBAEf bgdoRkqSVLdK4RyJtSEDCW5RVA== X-Received: by 2002:a17:902:7045:b0:163:9c45:e330 with SMTP id h5-20020a170902704500b001639c45e330mr25430866plt.32.1654076821222; Wed, 01 Jun 2022 02:47:01 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:dc30:e75c:ae95:f2d6]) by smtp.gmail.com with ESMTPSA id x42-20020a056a0018aa00b0050dc762815esm1039494pfh.56.2022.06.01.02.46.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 02:47:00 -0700 (PDT) From: Hsin-Yi Wang To: Chun-Kuang Hu Cc: Hans de Goede , Thierry Reding , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, Rob Clark , Stephen Boyd , Douglas Anderson , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/8] drm/panel: panel-simple: Implement .get_orientation callback Date: Wed, 1 Jun 2022 17:46:34 +0800 Message-Id: <20220601094637.1200634-6-hsinyi@chromium.org> X-Mailer: git-send-email 2.36.1.255.ge46751e96f-goog In-Reply-To: <20220601094637.1200634-1-hsinyi@chromium.org> References: <20220601094637.1200634-1-hsinyi@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To return the orientation property to drm/kms driver. Signed-off-by: Hsin-Yi Wang Reviewed-by: Hans de Goede --- drivers/gpu/drm/panel/panel-simple.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index a34f4198a534..54e78d978dcb 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -434,6 +434,14 @@ static int panel_simple_get_timings(struct drm_panel *panel, return p->desc->num_timings; } +static enum drm_panel_orientation panel_simple_get_orientation(struct drm_panel *panel) +{ + struct panel_simple *p = to_panel_simple(panel); + + return p->orientation; +} + + static const struct drm_panel_funcs panel_simple_funcs = { .disable = panel_simple_disable, .unprepare = panel_simple_unprepare, @@ -441,6 +449,7 @@ static const struct drm_panel_funcs panel_simple_funcs = { .enable = panel_simple_enable, .get_modes = panel_simple_get_modes, .get_timings = panel_simple_get_timings, + .get_orientation = panel_simple_get_orientation, }; static struct panel_desc panel_dpi; -- 2.36.1.255.ge46751e96f-goog