Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5862822ioo; Wed, 1 Jun 2022 14:22:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFmA459R4kP3wuJKbeSBq7QcnRcb6jHE4VVf9talBxMSrZdtgLrBr8vl+wFPl8RmqnsZZU X-Received: by 2002:a17:902:a415:b0:161:74b2:c1c2 with SMTP id p21-20020a170902a41500b0016174b2c1c2mr1403431plq.2.1654118527891; Wed, 01 Jun 2022 14:22:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654118527; cv=none; d=google.com; s=arc-20160816; b=BqroRduaU8ea3CM9pvc5eTkZK9VmHktlxJnM/adSSnPVjQdWu4RweddkStO4ArFdGA qSZ6a0vWO7MNRhKqm1HCxs5ajlnGI/N9eYt5hWsmOQ+wHsn1ZYQBQBv1Fy+bdDubvZKj lTL9IuQNr3l/JQLijuMXb1QtASYuwr4bvTsCtHs+vR3UrjKXC6URmSHMOzuyKSufXaG0 745j7FPTW59nhO2LmZyorUA+RZsiox6N7DVfagq5fkr5R940P9YxpoNLbchj7XOIfVXk zaeUrt3E7nxa+f0EtJwYuuoM+uCYWb1xko7MNJHdAQKEgYmpviuGyapKKioIKrP+UpOc 3aog== 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=O/72CEn/8tEBsrCbwpSKpFCIgi9sYAXiNEhikH0IRpA=; b=RLSdMrUSNmCYVwq9JFOXT6nV45TPy3mUWp0DGdUx9HrPvw9hM9AU5x0lngqxgl7HL2 AWzsq39DF9wTWG3uOknAPYiCmUdliiNxfw4zhynL3lq7GJfEr360pf8oL+C86wW1MniC adGegP+5o74ghUaQbRSpKvCE28/+Gto3sadt8ujgYSGjJQXzvWPxO53Cl4u+7oobiJWD pkNfQBg3qUQVUfTBRH/NwoOkxzyTy4YWUv8ion4luFf2uN0W7W8FeA0bhyTV5exPPRHU z52m6OxBERuHPEWzUObcXEBTO6Loqoar0rbgKorxXYYFbQs/w22jbLDwhxXpV5jqwqYh PGWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OS+nvMct; 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 w1-20020a63b741000000b003f667dd5faasi4102379pgt.82.2022.06.01.14.22.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:22:07 -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=OS+nvMct; 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 392F023D55D; Wed, 1 Jun 2022 13:12:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351465AbiFAJrR (ORCPT + 99 others); Wed, 1 Jun 2022 05:47:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351441AbiFAJrH (ORCPT ); Wed, 1 Jun 2022 05:47:07 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C32492ED7B for ; Wed, 1 Jun 2022 02:47:05 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id y189so1466793pfy.10 for ; Wed, 01 Jun 2022 02:47:05 -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=O/72CEn/8tEBsrCbwpSKpFCIgi9sYAXiNEhikH0IRpA=; b=OS+nvMctRYsuTwiXTJRqbgZKnlvrlKjvQu63bS3tE+z2ocwPpH+8Be8ETuIRFu1Bpm lzFSCn4cLpLN4zoriukqzBwgN/EobgeDfPFSG3Zm2uEEqlCB8YTCxRZ92yS+SNWZeqPD ZWiz7cFBMmKJ8XT1LNNfAPpMY17jnT59h3r1Q= 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=O/72CEn/8tEBsrCbwpSKpFCIgi9sYAXiNEhikH0IRpA=; b=GUpn1o9ebwwPsrfRiHVyucna7nJkLk3HDfLBPBVI3sMhetYMqoe2Mkv69o38rYxscX oV6lt8cpWMBI3dJJTQwNb1qGv0DyQ3WaIjt/FZ151G/hTLobvq1lafLzPoTOWsGFmidy qMzF5kj2hY8otHcxRCDcQFXbZ099u9nsoEBZthnbM/t2zMPhm7WvW9IwqnzdTiGFqouB FYxaSiobl2WsBdlRI4UsYkNo8DGg6ppRiUlm08HD3drZv1oBeIsHMYozNVy1NT86oBg2 o8thps4wt9V37QE42Of4ydf5sfQRPszOdvd3bHuYwQIiig0/F647sh8YHkwhvLTqawOW MkDw== X-Gm-Message-State: AOAM532NWD3yuSrf2DI6vYloywtzF4WNcPi3ZjD0phIYTs4Dg9+tR24S KBXDycHZqZiMmVYWMafnMdHFmA== X-Received: by 2002:a63:341:0:b0:3fc:824e:86bf with SMTP id 62-20020a630341000000b003fc824e86bfmr4498754pgd.140.1654076824594; Wed, 01 Jun 2022 02:47:04 -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.47.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 02:47:04 -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 6/8] drm/panel: ili9881c: Implement .get_orientation callback Date: Wed, 1 Jun 2022 17:46:35 +0800 Message-Id: <20220601094637.1200634-7-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-ilitek-ili9881c.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c index ba30d11547ad..238b6a75d2ed 100644 --- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c @@ -858,12 +858,20 @@ static int ili9881c_get_modes(struct drm_panel *panel, return 1; } +static enum drm_panel_orientation ili9881c_get_orientation(struct drm_panel *panel) +{ + struct ili9881c *ctx = panel_to_ili9881c(panel); + + return ctx->orientation; +} + static const struct drm_panel_funcs ili9881c_funcs = { .prepare = ili9881c_prepare, .unprepare = ili9881c_unprepare, .enable = ili9881c_enable, .disable = ili9881c_disable, .get_modes = ili9881c_get_modes, + .get_orientation = ili9881c_get_orientation, }; static int ili9881c_dsi_probe(struct mipi_dsi_device *dsi) -- 2.36.1.255.ge46751e96f-goog