From patchwork Thu Jun 22 06:06:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9805449 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 3800A60329 for ; Fri, 23 Jun 2017 01:03:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B5E01FFEB for ; Fri, 23 Jun 2017 01:03:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2FD45212E8; Fri, 23 Jun 2017 01:03:57 +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 B23571FFEB for ; Fri, 23 Jun 2017 01:03:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 653346E0D4; Fri, 23 Jun 2017 01:03:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0103.outbound.protection.outlook.com [104.47.1.103]) by gabe.freedesktop.org (Postfix) with ESMTPS id 79AC36E5DA; Thu, 22 Jun 2017 06:38:36 +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=hI1QywDyCUifZfWKTyvA1bNicP4t9BAuPMKMNqfmNRE=; b=Ga6lri+d8owJZAaM88KMFOuQNv+lg8sQd49qeFLrVAoF+kWOInBAvs9Bn8ZEUypxv2kvueg0JigkbmoeFTL0JI8BPGpTjBhxlN27ZrT+0lh1iva+bEzRUXYKE0UGkf4ln3Ab/DEwxakRs1Cj0t65fDLqHRX7MPYB6gkSzGHao3Q= 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.lan (81.224.171.159) by HE1PR0202MB2553.eurprd02.prod.outlook.com (2603:10a6:3:8f::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Thu, 22 Jun 2017 06:06:17 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v2 07/14] drm: cirrus: remove dead code and pointless local lut storage Date: Thu, 22 Jun 2017 08:06:30 +0200 Message-Id: <1498111597-10714-8-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1498111597-10714-1-git-send-email-peda@axentia.se> References: <1498111597-10714-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [81.224.171.159] X-ClientProxiedBy: DB6P193CA0003.EURP193.PROD.OUTLOOK.COM (2603:10a6:6:29::13) To HE1PR0202MB2553.eurprd02.prod.outlook.com (2603:10a6:3:8f::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 760f6df9-2fbd-4eaf-72f0-08d4b934cdcb X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500055)(300135000095)(300000501055)(300135300095)(22001)(300000502055)(300135100095)(300000503055)(300135400095)(201703131423075)(300000504055)(300135200095)(300000505055)(300135600095); SRVR:HE1PR0202MB2553; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2553; 3:GTsA2gIoemMvjso3pGaSO5S0FBiUztIH4QlgwkgaLoBzBnCC5+duD7E+vRTOwpvzdb2VY8WrSDvNr9C9NdRaB8k8bvHrMN7LpmoJX+IuJK8JOHU9RnZTRde4V8PdWO91g8dGSvK2p/edYeTg2mL8X1z8VYqYys5S4qbia1CIkdxUGeq5TzDqqwCfczyE1iQQ1A/NXbDNrDOe+gujR/aYalmt+FseRc9B3c+vZWPviqcrGgkVwsWsMadfgJWemWCkTZClFOZ4mWACSU7k+xA+NdCY0uOSurmW6wUzbF1MOg4ikzdV9xcwCiUBoe48jLw6tEbOA0qb0yqZagsWaWD8pJgJD2dKIiJa6Ifxk5kobny4FpU525uhaMRDgDlAgsoXCzLYMve2b6jjbKzf5W7bSz0+VOlWy2gAXhDqmX6wUpGo55BgsLgI/F5R7wRYyC+IQpkIci7qayDLvYwMPCJqKs39GjelprBMqEuYGqxoRv0bNs4U4jJEdgKmDMaRnQmTl96byBCFRGP4YjtiBkpzmwMrReN3U6lFjeAa4IBoGrAiSpVVxHeJ5YpfkgjJkQ5RF6Cu7YSNjAKnYeU3cq9yICkilEdqwAaUkLW2PkemJ8yindNu52WmdpBdFwHpv8O0SdN6k9LIh5gNFQE5HroCkg== X-MS-TrafficTypeDiagnostic: HE1PR0202MB2553: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2553; 25:tjGfgMlX2Z3vYSYKKwtL5UVYs2WR7/iY14ljJqqyHyfDsw3yeEfSM/66+GpFYfoNqoKO9Tg3agy50gUD6aHOxnhgrVDu5MqYebfP1tvCKN9QCjIlKPHKoqD0tfKbhI+EItBcfpykfvFsZs6HC8pSfP2jjVV7KN0jsskSKddyrOU4YSXSgBm9nSa6itsLMSdM9EFiobXC7o8GaOSdTexwCt4GVVPlPm/1eYt4FTn5huXrF4g3H81mWuDve4iVOi8pxVhmpRfRknvx6RFznyIo7YqP7f3PjfSzNUt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s/B6HfZENr7xCGRcKcr+UQLBoRcPQWQtaWVmenJE1oWAx4WXU8dCyToQSg0JzoG+WDOCMRT9ot7L1cD7XeFj1i15RQrVF+mmkD464aBxq7XVEzdhlTl8tPDoouxKiAbGvsX+1AymJmATEgcrLuRitQhYTzSiLp9W1hjH8FIiJHYiyJNDLueRT3+DppeVgzmaNdFq3teCzrr9w+7R29OKcfuONXXRR+4dp9Z23pboSnC6CDwxRv6Qyb9zieS6eMfaHJk4bCrakrkAQh9W20JfMtQ0bDuhU/naRc2+N1Q= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(2016111802025)(20161123560025)(20161123555025)(6043046)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0202MB2553; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0202MB2553; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2553; 4:Nj9O3vFaJHki4TIIYI4ClbBSiQrUppMwsYHowXi+?= =?us-ascii?Q?3ye77S0ipBbJq3VAiDH0aYZpvqfJNL7FWtx0sxjP1aXYZmo09hQ3tNtCaXfc?= =?us-ascii?Q?MxdWZCvtGNAAO41903G4OGF2rVG1pYTtiRY45GbLl/aMzg6asu1CMnaleEF3?= =?us-ascii?Q?TLuZNJok7rf2TaM6vqdrkRbe1aNHBCyY8D9vO8WL43YC76Y1NcPnS9OuFHuy?= =?us-ascii?Q?lB8vyCiDwE8AUpQ3q3AjFu/9kgD7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?r0TOA9FPZusFhCZuaGQqAsO1EHuu3ALMpXbEUt3gwKIBMjhnz5u0YygnNr5l?= =?us-ascii?Q?najarN5z0BYQJvlMjCY8XsmqL/WRUSQmfC4o?= X-Forefront-PRVS: 03468CBA43 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(39400400002)(39410400002)(39450400003)(39840400002)(7416002)(6486002)(5660300001)(3846002)(6116002)(76176999)(36756003)(305945005)(50986999)(2906002)(50466002)(25786009)(478600001)(66066001)(42186005)(33646002)(50226002)(48376002)(2351001)(2361001)(6512007)(54906002)(53936002)(8666007)(6666003)(81166006)(6916009)(2950100002)(47776003)(6506006)(38730400002)(5003940100001)(110136004)(8676002)(575784001)(86362001)(74482002)(7736002)(189998001)(4326008)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0202MB2553; H:orc.lan; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2553; 23:3oi4sVQGGmxPNHuX7cl+3Zf0rmfYkJbg9oKO/Ly?= =?us-ascii?Q?Yz2pXoCtvlDfyOkzZaKrwZSpphsSPdDt36Ex4TebQ67beP+hmlmdkDoBeYR3?= =?us-ascii?Q?4zLxlE/68xychtyUV13qnOh/vANcqrvcyPvnnaJOhvRdMEMwNl/9PfZhIT+W?= =?us-ascii?Q?24YnLjcmW43dWbHMleBMr+SYy1i4WIefZp6Wdu/Q/PL5ecCXtIVJBoIWufoR?= =?us-ascii?Q?NfM+/40Y1ZQvWFoH7o/V6JboapqHvJqWNWvXlCOimJF2bGgcGD1Co8YDyjgV?= =?us-ascii?Q?EsaM6zSngbJ8xQF3OJ3VRexwaap3iLRubToTOniBN3YypqDgmHu9dyRsoavl?= =?us-ascii?Q?XjgGNst47oWy3I53nIPSfFaSTPebtMB5UvCehcGGjGlfhZVYYhfxFwaPFxqs?= =?us-ascii?Q?QVnzkKdJdwhIRJxT2/sKKxgaIyjIRVv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KzlUtsYIn7WKFioiKaNuvHl0ywfYwhdGMcvsN5ZR27IScRhMJzdo2Mmf78?= =?us-ascii?Q?b7M=3D?= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2553; 5:l52oGGqUYgblMq/Yy/rknpMPwYFOs/S/DKbsTwu2l5muP0qNPN3378UPWSwqH6dehaxTc8TVY8dGmH0hgoKm8hpZzhohpeSUS15j09s4ziWtPPhvQYARb43zJAZ72nBKlGirEYIZ4Da8cQd0pvFHaE7RWrKXfJNHOM4AK4iOJPR/fiy2S6KTngdguFo8Cv9jGVpJ7a8FkFukQtOyYHqLvf9zYaB++rqxQa5fOysZ3pb5k5ESGrFX/wR6SpTVUnI1Ez6W+ZfO7H2mXv7u53VMUxxRjfJlN7IlDyfSZZvqU94xV/M3PPw3JhrG/TUx9rFH1QfI1UxAsXQqFDeMCXOOwoMwSCNSC+5Tqad7YaYOhJE5nxiXq2qQU0Oo3IeTkI+BR6iQjUdCqrFduAXkiudD5R2Oy106IRSCK0hXyvjcqPf5bldQdYpfP6v9XXfuuTVHUlqsrxsn4TdjQ6oTVGJNAS/FJdk8LH3iBsuHFmTztWIX6okiUddAgVIVDqdB3BAR; 24:IC6FUjWuiFcyez1WollACIwuqFJeqxDtrBdyIBUyxs+LhmKmEOgbhoEfbapKU15Iuo053K78GV3KsPte28QN2ZZp7JDzumNbf5ucomDY4wU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2553; 7:P2mYBtt4QHnCaeoTKvV+5IqKi7v3gJQymDN8Nc0BfrChixB4xJVoHBESyPButUIIem9X6cMChX3HJiW96kdWWqR0JSo5RCFiXvIbqYBTGmZ0vD+/ga9s2LZ6/y1oRk6UIr/TgLODGKcm1h1EFCMDceyRpcMI48WC3ooEVS67Wp7kHE3CAqpAcMsg3Dmeqbr6rdh5k4+Li49eHzf26WV8O2rCTyJn5jZN3vDYVicFk9OBRFy7arfrqPdQZAxFJUW+q1YjH43z+o+3tu3AKPgiHrcZGYyRApIqEIHrvWMQ/zbhi65TgEoULXKx1KGaeZI9zw3CHcgPnMbA+6iOxgTwfqz1Lg1E0OqvxQBXJMqsB88HhIgn0VDqcHpbJAi7SUT9liLa9lZAcz7bK0bYeeoGdCRONJQ4h9xkXIA6EPd30CFzNKKo5cyPwm2/nzSt/NoxwWbYeZR1c2F7JmwJ85sq0VrtZYbwYDkwR+pWFJI1maWtHi/FaIoiN1SUdDdX9ffiSHTWySA6hhyHPsLiqXit4GR9rUStYH1N601Cl8+f3wLc3qcwgB/2C0ZPa/yeOVnUDxvuAXNdqKFlsbWofxH1V4B1FFS0DtZSj4P4UtFb5pMu7suJ4OZXuq8nvyCfVl8ib9Maw+NURgcB+ZKg5BjW4vLUtKEvH/FX6dnIegXYyTCgSFpIJ+01+9LPsmCAPd35NqMY6hVNBs06S4+qZ3U4b448Gj9sq8ZB+/D1doAJy+dTfTUGtWg88X0unjkJ7WnBlrjt//u8q2mdCEfG12IMENOMv688XtUFmPLjeyWnJi0= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2017 06:06:17.5115 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0202MB2553 X-Mailman-Approved-At: Fri, 23 Jun 2017 01:03:45 +0000 Cc: nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, amd-gfx@lists.freedesktop.org, Daniel Vetter , Boris Brezillon , Russell King , Ben Skeggs , Dave Airlie , intel-gfx@lists.freedesktop.org, Vincent Abriou , Philippe Cornu , Peter Rosin , Yannick Fertre , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , Gerd Hoffmann 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. 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 8690352..be2d7e48 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 7fa58ee..1fedab0 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 53f6f0f..a4c4a46 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)