From patchwork Thu Jul 13 16:25:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9839753 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3278C602A0 for ; Fri, 14 Jul 2017 01:04:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3DA6628757 for ; Fri, 14 Jul 2017 01:04:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3271A2877C; Fri, 14 Jul 2017 01:04:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7E2262876F for ; Fri, 14 Jul 2017 01:04:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8578A6E747; Fri, 14 Jul 2017 01:03:17 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0121.outbound.protection.outlook.com [104.47.0.121]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4AA966E66C for ; Thu, 13 Jul 2017 16:24:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentiatech.onmicrosoft.com; s=selector1-axentia-se; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=b4gMguDAwZskcocCtyGwMjjFB8jKTVFlRO4KwbUcaEQ=; b=T+d9KYPaWe3aSCohiSzTeg7DadKFTjqsHl99D2QM5i040VfgDoRlhAZxQjEP3h3oeNZDbDRNabIvOspCL6/urIIVhgJmgdul0rPCpLzwEEnfUTEHg3LkPkjQZcAxfktMAD5+bat6JgALmOhC0d0b0TyWd63jpb4AZfvLOilQXB0= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=axentia.se; Received: from orc.pedanet (81.224.168.30) by HE1PR0202MB2556.eurprd02.prod.outlook.com (2603:10a6:3:90::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.13; Thu, 13 Jul 2017 16:24:31 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v5 07/14] drm: cirrus: remove dead code and pointless local lut storage Date: Thu, 13 Jul 2017 18:25:31 +0200 Message-Id: <20170713162538.22788-8-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170713162538.22788-1-peda@axentia.se> References: <20170713162538.22788-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [81.224.168.30] X-ClientProxiedBy: HE1PR09CA0048.eurprd09.prod.outlook.com (2603:10a6:7:3c::16) To HE1PR0202MB2556.eurprd02.prod.outlook.com (2603:10a6:3:90::9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7a4f8070-1ac7-41a6-d610-08d4ca0ba4f4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:HE1PR0202MB2556; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2556; 3:uh14eAENHYommpC862cezLmgA897rg6MJXJxUeH7cT8Mymd8V+4HLZ3W1JAWxZaPHVELlcUzPv9CwmRpkQUHuxcaeFidb/3c3SCZO/m1OYs5q5ylSa2HMGwVmnpEOC1jlx6fdWmThF6c+8cDXndzo5kIAJXMMuoTCYZQ0rR0l/jprUJt6/rqK33PTr2HWbFPuCnChPKOiciT/9jCJ2930+R4UjED/Abe92TUAXSE6NXQcwft6Fn/KbfJDIZR+a5E2gTYdXz/rZE68z8Cv4lTrkONbYfN7Oi/YjSWSi2vBtJ3/fpBTgixup7DiP+kE9SMinbUuwjYJauEN/PXaIIY6ESCjZHKTY5FHkm7FHIjJR0+c2glJ3ppXcRW7QjGrVLxcuJPM79B0fc0QNJlmdIzccjH7g5KA9Z4cPYslSM1frfyJw+2/yIYCzCJIYrbx6kGLU2fMpd+7utcKBjvcNU7WW/F3QloYAbXwumxPuk4yuZiKTEJuyKlDxh07D7loN8pHYv38HpkUQKliPpoJrb99IZN5tSkC7GMc+NR2sIRtGM6eVU5HWXwtPgKXhe3ayJeUXE4+djblMDjN0UVgSNZHLMmpALdbLlkoQ1qqrd+HK8KVETCLUEIep2OsavqAnXPwsYOK0sPPxnHqwqzfpgE+oDXMZBFIIdC+7aAM3dnvXYovsGu1gBrW3I3ngrjHZ5fWjfJWle3DubtZVbj4AHI0Q== X-MS-TrafficTypeDiagnostic: HE1PR0202MB2556: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2556; 25:ecVNgUDOQkJJnH/71v9HFBJb3vA9ELEDePeyJUNserYNnmnhAlN6eAIuHEh+Ko0cKvCmGsI5IntCPzplKWobiFgdtCZswJDIl/zmExT4/zEKpXxSvG2XDTtd4EN2v/JE8DUl9uAjsOhqEZLMyt2Nf0luxeGHLpRCX5SCS+Bw7a+kQ4WX8fDq9nO+iel711YY/J5mtoPNozehQqAlUbvYfYjU0QIePvEmNiGUIJFhyKmtsahYB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qP/pK64Rj+Vu8anxTFGVvTr2cfDDr29l9VJ98IT4V5lxInH9ETbqVhVjD41SVT1TJynFicUqpjFDt1SUk8KHCisL5/c4Ghs9BrciUok5nuYr6QLHLqy7GD2N9ZRgGkdYNJRWnC40HNzOMk1b1YmkU7dex+6L3bx77yzuL4Pb3LcryEglExp81PFEkX+8KB1SNr+b8mZg2fQl2+ak+32IkPma8aql67BUxVrJrqkjLmEy42A4gvgzy/4w89dVZVVQdyhkwWUDMpoTLmnVDDU88vRvnfVu5fOQauxFAGKvLhBLOJpCxlht7Mr5FLAEy4XvvJO2YKRTTxyF7N8ioDfXM3NehUYe/pLg= X-Exchange-Antispam-Report-Test: UriScan:(236129657087228); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6041248)(20161123560025)(20161123558100)(20161123555025)(20161123564025)(2016111802025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6043046)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0202MB2556; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0202MB2556; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2556; 4:DLqRikLr3Q6Gm9gzjWCqn62/lerC+tkCgKrhiEB7?= =?us-ascii?Q?AwTA52VD66KqrnepiMwx9WDvN2tlxixbSg3LnEcP2baXdf9RIQedl45JubAV?= =?us-ascii?Q?i4qhupDxuEVW+7j5fPj5s8jDhpgZtDfBmztTMj9cKDNM9lJid7EzfuRghYkF?= =?us-ascii?Q?SY4qSncSiwiuuliuLG+/++Bc3gpMfywUiuyfwOotSfkwoMXquxzD3/p5TanD?= =?us-ascii?Q?L/WB/ntPl5Ahk3DpNmm6Y9/J3bBZjDv+H7/7FOhDCqDeWYwpHkj9Z4VJ6H88?= =?us-ascii?Q?K3MzPsqyiV5I194ddW41Nd0NJCSUc4CR4sSN67YKmE2mnNbWGF7nDLdprltF?= =?us-ascii?Q?F7f1B6/9um8mndBMxC4KSOtDFo+JlpesEGSXwSnl9djBEA5w8S5kL7sF1ASN?= =?us-ascii?Q?TKCQq1qh9TcrYeZnvOOGeWPaAjTkoOeGNIw4q4unN6rzMh9LAKGrmwJGj+sF?= =?us-ascii?Q?jcZMXFDLgNPl5DEthnvThybfNyyPAbDJvN4B/aTiyNND2dGvnUQWu670y0j2?= =?us-ascii?Q?zrOYYK6ranzj9FnM007uSJQXu1Y3TThI8vS4Af2lavxsax8aGd+ocs7GpgTo?= =?us-ascii?Q?NLniX7g/07X5v9CDmmoYDOCElyEv19Ex9Kg4EE35sZULFVEhP1i9wmzUY5q5?= =?us-ascii?Q?6R8IFn4o/10COMJMoClI/KL5MGNfTHduobAZI4afkzmYBwz0tipMHzCy4HHa?= =?us-ascii?Q?27FrgmLMDe3X3DPXbiKxb6WaCjA8ml5nXNTxbisO45mvX4r12DzhNiVha6Y/?= =?us-ascii?Q?5g+d2GjJ3wsPTxgT7sYiPVqisCTpp9SeKqX71qdwviqI6G06HP4CcTJNisC8?= =?us-ascii?Q?R56vhSdJk2SRxFtnyZVHV7wrM9oWXniv5fjDflsY6qrsv+5C6xgaxGycXiCf?= =?us-ascii?Q?VScBKn08/bECsIcsNrLMGIE3O7ATAv7jnUd9tXyVy0+DM4+EbjDETncX4x4+?= =?us-ascii?Q?jiPNMJJmQLm9X2cMi0jueV5lVHGtTx3tDiOa5uRF7qGZh58YBQ5dyluQPuCn?= =?us-ascii?Q?7xct+ck3824LDy98mGUHIVivlW/qdUUZybKqTJAgaqLU8jbZNckFcj6MCUgG?= =?us-ascii?Q?H4D6lqQ+hMbKYzz6n33rOHt1Beg98/kkWP3/Vra6iIepthEh1CMILlQz8OFD?= =?us-ascii?Q?affA3A2vvDrD0q+weNo3D+B9t2W/Q6Xgmsrhh3VK6sowdJ/HYUCF7qE5lhkx?= =?us-ascii?Q?jyv2QVHBURseaGS/kRJx2Uly6jW4S61RQOdv77CeN3D7WzE8iWTTSQWJfXdT?= =?us-ascii?Q?ILvc/TjU1VjnrI3Wg0ypCbUqEnvA1pl1ttqsCKVP?= X-Forefront-PRVS: 0367A50BB1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(7370300001)(4630300001)(979002)(6009001)(39830400002)(39400400002)(39410400002)(39450400003)(54906002)(8676002)(81166006)(5003940100001)(50226002)(6512007)(6506006)(38730400002)(110136004)(7350300001)(53936002)(6486002)(7736002)(68736007)(189998001)(5660300001)(305945005)(4326008)(25786009)(2361001)(2351001)(33646002)(3846002)(6116002)(7416002)(74482002)(48376002)(50466002)(36756003)(575784001)(86362001)(76176999)(50986999)(1076002)(42186005)(2950100002)(6916009)(478600001)(66066001)(47776003)(2906002)(42262002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0202MB2556; H:orc.pedanet; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2556; 23:WBhuBeabXcXERcAWrYYmtvR1BZBF3mQ6H/ssuAD?= =?us-ascii?Q?9zgQosEWoYtKJXAqA9Eg5iPr1WsMbqHaVUDy8Zt99Q9WfwpuQlSgJDCPUwm7?= =?us-ascii?Q?3xjvB2mhiLRn3TwBWj6mano/DcEp+c2fzve7VZ1gukJHN4kqXrO7uIjEcK1L?= =?us-ascii?Q?t3/U4k7xo/mUsWIFgsq+W2K2dJ1Im9SF/VcNl1+Z9fdiapibW/kx1KQneiAn?= =?us-ascii?Q?zsXNczIn58TVKGZtKbGXlFnBTvHgqFVP7UVF4R+j1zAvW/F426bzRe8KonAC?= =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AHXBJm8V2/fq0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2556; 7:Rbcx7lvLsnEt5hG2MlQr82n7bDYEDrO4sjHz8lyyDI7gNXeBNbEGzbw4f/v2GgwNoyYd/sDwT/+xisnsW54HP062g7cZkVe1Xtjyl+t9L+IJZps6Z8bLhPCPiUZ+UoD802QkU973/pKFlrJ0yehOhxoDcToQCcNYehlGurTSmXWpTSx4g0Nw7s2JeW1KIK85ea3Pwd6+qA0wSYWhecjvelLZBC85Z+yBOc2rt02ZVC/d1iKeCSm7OmKwOZTgqaD3xYtCprL9f2OEknInJdmbFODudDROdSAh1HoePDryOqbdMTZqikl4SJS5ZlUCOuJSXDy95MQCQp+C6F34jMrJtfJuJ2LKKtblEO22mPE/RsXwkOw5m5fZk/MFROFoj3lYjM7vBVMFG+5c7Naxr4acX/vwsOdaVJwOnGkLIFfAkpXMH6g5w7prkfdg6jsI9mDRqa9PpzlAxmoJM4tLAn0/2i8AC6KQR5sxMM25DBB5ULP2vtsR7Ip8K4rYiAl+eudeDhT1FvjeHVLLUtKR8wHso3zfKZkwe9lghJNZKYfQqO3bicAiCHqUEu7PA1+K2tt0o9jbBDOYhZ2tpU6DQW0akt8jpfWjQYTx3uwOE2gqykxVtYDOgaUHdUhM9tRCA3edniZFdfiZK8UGsgp1+BsYMrvWl+fqPchAORQq/VHM0CpXDwmVoq3/BkO70p7zMAJJGEFSyRY+RPZJ5h6x29nR5ODT/pSQVG+s5B84CynQuToL2tL6WQB4oGWk00Zec+/DGmr6NnvSY+VPIp2gSyybfnfv8OMlJin37LhThZdb5yk= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2017 16:24:31.8292 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0202MB2556 X-Mailman-Approved-At: Fri, 14 Jul 2017 01:03:04 +0000 Cc: Boris Brezillon , Daniel Vetter , dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, Gerd Hoffmann , Daniel Vetter , Dave Airlie , Peter Rosin X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Acked-by: Daniel Vetter Signed-off-by: Peter Rosin --- drivers/gpu/drm/cirrus/cirrus_drv.h | 8 ---- drivers/gpu/drm/cirrus/cirrus_fbdev.c | 2 - drivers/gpu/drm/cirrus/cirrus_mode.c | 71 ++++++++--------------------------- 3 files changed, 16 insertions(+), 65 deletions(-) diff --git a/drivers/gpu/drm/cirrus/cirrus_drv.h b/drivers/gpu/drm/cirrus/cirrus_drv.h index 8690352d96f7..be2d7e488062 100644 --- a/drivers/gpu/drm/cirrus/cirrus_drv.h +++ b/drivers/gpu/drm/cirrus/cirrus_drv.h @@ -96,7 +96,6 @@ struct cirrus_crtc { struct drm_crtc base; - u8 lut_r[256], lut_g[256], lut_b[256]; int last_dpms; bool enabled; }; @@ -180,13 +179,6 @@ cirrus_bo(struct ttm_buffer_object *bo) #define to_cirrus_obj(x) container_of(x, struct cirrus_gem_object, base) #define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT) - /* cirrus_mode.c */ -void cirrus_crtc_fb_gamma_set(struct drm_crtc *crtc, u16 red, u16 green, - u16 blue, int regno); -void cirrus_crtc_fb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green, - u16 *blue, int regno); - - /* cirrus_main.c */ int cirrus_device_init(struct cirrus_device *cdev, struct drm_device *ddev, diff --git a/drivers/gpu/drm/cirrus/cirrus_fbdev.c b/drivers/gpu/drm/cirrus/cirrus_fbdev.c index 7fa58eeadc9d..1fedab03f659 100644 --- a/drivers/gpu/drm/cirrus/cirrus_fbdev.c +++ b/drivers/gpu/drm/cirrus/cirrus_fbdev.c @@ -265,8 +265,6 @@ static int cirrus_fbdev_destroy(struct drm_device *dev, } static const struct drm_fb_helper_funcs cirrus_fb_helper_funcs = { - .gamma_set = cirrus_crtc_fb_gamma_set, - .gamma_get = cirrus_crtc_fb_gamma_get, .fb_probe = cirrusfb_create, }; diff --git a/drivers/gpu/drm/cirrus/cirrus_mode.c b/drivers/gpu/drm/cirrus/cirrus_mode.c index 53f6f0f84206..a4c4a465b385 100644 --- a/drivers/gpu/drm/cirrus/cirrus_mode.c +++ b/drivers/gpu/drm/cirrus/cirrus_mode.c @@ -31,25 +31,6 @@ * This file contains setup code for the CRTC. */ -static void cirrus_crtc_load_lut(struct drm_crtc *crtc) -{ - struct cirrus_crtc *cirrus_crtc = to_cirrus_crtc(crtc); - struct drm_device *dev = crtc->dev; - struct cirrus_device *cdev = dev->dev_private; - int i; - - if (!crtc->enabled) - return; - - for (i = 0; i < CIRRUS_LUT_SIZE; i++) { - /* VGA registers */ - WREG8(PALETTE_INDEX, i); - WREG8(PALETTE_DATA, cirrus_crtc->lut_r[i]); - WREG8(PALETTE_DATA, cirrus_crtc->lut_g[i]); - WREG8(PALETTE_DATA, cirrus_crtc->lut_b[i]); - } -} - /* * The DRM core requires DPMS functions, but they make little sense in our * case and so are just stubs @@ -330,15 +311,25 @@ static int cirrus_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, u16 *blue, uint32_t size, struct drm_modeset_acquire_ctx *ctx) { - struct cirrus_crtc *cirrus_crtc = to_cirrus_crtc(crtc); + struct drm_device *dev = crtc->dev; + struct cirrus_device *cdev = dev->dev_private; + u16 *r, *g, *b; int i; - for (i = 0; i < size; i++) { - cirrus_crtc->lut_r[i] = red[i]; - cirrus_crtc->lut_g[i] = green[i]; - cirrus_crtc->lut_b[i] = blue[i]; + if (!crtc->enabled) + return 0; + + r = crtc->gamma_store; + g = r + crtc->gamma_size; + b = g + crtc->gamma_size; + + for (i = 0; i < CIRRUS_LUT_SIZE; i++) { + /* VGA registers */ + WREG8(PALETTE_INDEX, i); + WREG8(PALETTE_DATA, *r++ >> 8); + WREG8(PALETTE_DATA, *g++ >> 8); + WREG8(PALETTE_DATA, *b++ >> 8); } - cirrus_crtc_load_lut(crtc); return 0; } @@ -365,7 +356,6 @@ static const struct drm_crtc_helper_funcs cirrus_helper_funcs = { .mode_set_base = cirrus_crtc_mode_set_base, .prepare = cirrus_crtc_prepare, .commit = cirrus_crtc_commit, - .load_lut = cirrus_crtc_load_lut, }; /* CRTC setup */ @@ -373,7 +363,6 @@ static void cirrus_crtc_init(struct drm_device *dev) { struct cirrus_device *cdev = dev->dev_private; struct cirrus_crtc *cirrus_crtc; - int i; cirrus_crtc = kzalloc(sizeof(struct cirrus_crtc) + (CIRRUSFB_CONN_LIMIT * sizeof(struct drm_connector *)), @@ -387,37 +376,9 @@ static void cirrus_crtc_init(struct drm_device *dev) drm_mode_crtc_set_gamma_size(&cirrus_crtc->base, CIRRUS_LUT_SIZE); cdev->mode_info.crtc = cirrus_crtc; - for (i = 0; i < CIRRUS_LUT_SIZE; i++) { - cirrus_crtc->lut_r[i] = i; - cirrus_crtc->lut_g[i] = i; - cirrus_crtc->lut_b[i] = i; - } - drm_crtc_helper_add(&cirrus_crtc->base, &cirrus_helper_funcs); } -/** Sets the color ramps on behalf of fbcon */ -void cirrus_crtc_fb_gamma_set(struct drm_crtc *crtc, u16 red, u16 green, - u16 blue, int regno) -{ - struct cirrus_crtc *cirrus_crtc = to_cirrus_crtc(crtc); - - cirrus_crtc->lut_r[regno] = red; - cirrus_crtc->lut_g[regno] = green; - cirrus_crtc->lut_b[regno] = blue; -} - -/** Gets the color ramps on behalf of fbcon */ -void cirrus_crtc_fb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green, - u16 *blue, int regno) -{ - struct cirrus_crtc *cirrus_crtc = to_cirrus_crtc(crtc); - - *red = cirrus_crtc->lut_r[regno]; - *green = cirrus_crtc->lut_g[regno]; - *blue = cirrus_crtc->lut_b[regno]; -} - static void cirrus_encoder_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode)