From patchwork Thu Jul 6 12:20:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9829275 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 ED9E3604D9 for ; Fri, 7 Jul 2017 00:43:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF0C61FF82 for ; Fri, 7 Jul 2017 00:43:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D33A228549; Fri, 7 Jul 2017 00:43:50 +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 2CAB51FF82 for ; Fri, 7 Jul 2017 00:43:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A046D6E6CF; Fri, 7 Jul 2017 00:43:12 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 4676 seconds by postgrey-1.35 at gabe; Thu, 06 Jul 2017 13:53:41 UTC Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0118.outbound.protection.outlook.com [104.47.0.118]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4283A6E60A for ; Thu, 6 Jul 2017 13:53:41 +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=aPNFFtteXcjlod40U/JBTvuqupDkpJamZUXCoUCbR137bjpNCVvrrbhnbzw/IZfC7+0p6t0QxA4Nker9wVgYidOCO3+KJFEMuwCo3fim/xvtHfndR2kX+nBANTjiABrRv0omaX1c3KKFOKGfO5J9GT6ws5QZFa9iGXj3aQ5DaLk= 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 AM5PR0202MB2548.eurprd02.prod.outlook.com (2603:10a6:203:6d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Thu, 6 Jul 2017 12:19:51 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v4 07/14] drm: cirrus: remove dead code and pointless local lut storage Date: Thu, 6 Jul 2017 14:20:41 +0200 Message-Id: <1499343648-29695-8-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1499343648-29695-1-git-send-email-peda@axentia.se> References: <1499343648-29695-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [81.224.171.159] X-ClientProxiedBy: VI1PR0801CA0084.eurprd08.prod.outlook.com (2603:10a6:800:7d::28) To AM5PR0202MB2548.eurprd02.prod.outlook.com (2603:10a6:203:6d::9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ded1b106-0f87-4bca-0467-08d4c4694ddc 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:AM5PR0202MB2548; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0202MB2548; 3:sutR4uYbJ8d5gjH0JufyO1LAGVQNXzKrSQTI+2LwOXFgMTsH0YxownKLK/CXb86JbqcCZ5NHgtVv/nJdlTwRvU4qps56hk9NIK+QTWdeEjq4HqwjYaUhK/ZH8JcXu4TssPCjy/JZRtVWmIiFbDYkbsQsYzvTRyhmxcxnnlOgWwLYqXdkjYGw1dcszhvDOlK6KIJrdDbo/ngspzW4CFC9HQTuaZpQBvpn/ozbFuVFJf6/rP/TtmSZoAdjQYzo0ASrlf0pa+uYmnMd6f5EhDMIE5XJWJwsIx3L5xtFqMHJ52aQexQJHwSV3ULOrrYdFYaE208e18WcFtjDQrsFhI3gowuCJDCIajorv+e9vPBYasf/Iu4yXx9ziOT2Hvc3b/3fPHdhfGbQ4KoYO25x7T2qeU0PnAf72JkJWHD7UYCkqLhNsNZJR/PUp30tpduWEH1CasB5ByJbgVOveIJ4Xm2kxFEVIygybtXRmRpo/vhkLsExUDPQzC9I8ruZ++sYGQUgJgL8KrevT5CcWHjnkNU90hwfqJ0rRNG4FZYkomi8nvTsyDYZBkZKS/pM8IAYmH5xSjFKUMR469q/xITWuFPHQJLvWGiW5D8fL0A3Mv5oUwlC5AcWna+YVc5odLddunPWdDGe8AwSoLikie7AX6SoHKxySBAjZcwyTJQBo7DTldfXcE23Tqvf/kFbBIWkmXZH9vd1gz85ar1uSFQojFjPTg== X-MS-TrafficTypeDiagnostic: AM5PR0202MB2548: X-Microsoft-Exchange-Diagnostics: 1; AM5PR0202MB2548; 25:fsUZff5P8gTHyMyFudWiRAUiKCRCdQoPXQrA0reZ3FmQgJ8fX4Xz/5nmiREwVb9nqBwjGL6sUvIxbRW3c6lNml+3fpCSPQb7pZLmYymFtSa6tjVhh+1jHyVN37J1MZryYo2JJQxUY8xynWd5CJ8B8F3G82ViDTbL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dRB8c9CF/vr0LzUA8vh0W529/GRVlrhHC8qFFsywbUMHusSCJyhGuxd8Pd0s7le08GOsak52RMdIFhHT4VY76/+a7wC644vneZ4sKz5p60ZSxD183wsaW0+pZZpYtQi2L8tS1GBLtgQhJmsRe4jZ/uUjLxSXR9nH+cN+DFPdU3mhVPjwBnAbV6ON0NKRah5X7h5Aw2+gSqt6E1SLgtvr17u3H5DSAk/ETQP+oHt5O7fYQztfA3h6IJ7uiD96FzIW+wV8EZruhvoOX9qUL5euM/a15ZyWjPdbv2jTxotXvC93WB0c5jGkI2fN50g18Uz21JYkyISnPqJG9GTpq+DAoZubvElP37ntMH64ElR/JI4B6ANWi+fFbKwBFH9UjGpjhkku0+uCtudGWthm/VKbYdmgybYrcI9S+K1S54k2Ap5hs3eI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(2017060910047)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123564025)(20161123560025)(20161123562025)(20161123558100)(2016111802025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(6043046)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM5PR0202MB2548; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM5PR0202MB2548; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0202MB2548; 4:210KjADYZaczs61wCmdB8gQA87P43sG7/9846z+1?= =?us-ascii?Q?f/H0BKa0TMPPddvFbMG7hy0spJiHxekAyLy6oDN81VpPUh6AKxXRhE0nGe/f?= =?us-ascii?Q?5AT3S4jpBf4Kex2m0muchmzEYCwZ1hpXCkbmzY/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q?7zPSoHDVNXYOp61945aYiqJR+1z4BqgEFPp/AmmAEDUJqMlVJvHaGYN/eKK5?= =?us-ascii?Q?ox/Ekr/muxA9W6c2MY0DNPnpl9KWXxI/NhDS2Fg510HOMWXY+1EXIgUdreRE?= =?us-ascii?Q?E7SR58709bSWvBEazcSbFM7TGbQgNJTA/oDR4PLpdCU31e9WvjVS1bPvYqYf?= =?us-ascii?Q?dh7WCOZVo9hDgKefYO/9FcxsI/viygTJmcWqX3lsyE7kZqHAxBlWi05DI3dD?= =?us-ascii?Q?f5Ofjgh2YC8+lTUsBvAEEHcnQtP7pxwkxGq0eIjG?= X-Forefront-PRVS: 03607C04F0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(39410400002)(39400400002)(39830400002)(39450400003)(6512007)(66066001)(7416002)(33646002)(5660300001)(2361001)(6916009)(2351001)(478600001)(2950100002)(6666003)(54906002)(5003940100001)(38730400002)(42186005)(50226002)(47776003)(110136004)(6486002)(305945005)(50466002)(189998001)(81166006)(3846002)(76176999)(8676002)(6116002)(575784001)(2906002)(48376002)(50986999)(36756003)(4326008)(7736002)(53936002)(86362001)(6506006)(74482002)(25786009)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0202MB2548; H:orc.lan; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0202MB2548; 23:DR+u9v6HgmTcC4ozV1yAIikYKW+kh7x/yq/Pt1G?= =?us-ascii?Q?i7FPhWB0L1HEIp1JDiFqfpLaZNgk1TxO1k20Iec/iUPP+iU3rSc2c77eSZyi?= =?us-ascii?Q?HVL+UFHombhjCjHgRjEbj2Ieb2jelJq6zg/xRWJpkebvFJ3CK8jcfeCgViA7?= =?us-ascii?Q?wxMOubul0j97HRB8zVGAyA8XWAc7B5eB3BvG+QAA+8kACDInqFmOh7FzDrcV?= =?us-ascii?Q?HavKr9m0ndv76+S+SyBvXnUAKbftMtb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UTE8LJQOMtDXy?= =?us-ascii?Q?E2L1y4P8NrpDPMgexFmxMPaBSFxfUGYkIgD224ZhRSlfQTMSPzoZY4KebL2K?= =?us-ascii?Q?SfGb61ZiifblGbvX5iKfxmNyJqYn84g1VQ8yqbOCtZk5eRSxB9MQp5WD0b5/?= =?us-ascii?Q?1860AyRkeZGhKzeJSUiO3+7OyIYYdhwuzlhQSLRia1xVYvMQOqnSJayQen7n?= =?us-ascii?Q?QWg=3D?= X-Microsoft-Exchange-Diagnostics: 1; AM5PR0202MB2548; 5:xZLeNMlPvTehSIMHAyFRuoD/RIGlACrgTS4PriylOMjSovpUrL46Wf44Wux0h5NY6voZtuoPoOvVKsKP3i2cNBpN5s/gB1NTc/JJcnxsJG/iGR7c2dyOAtl5Z6QgnGZUae/HAITDqz6rqWf9xGHCL4z2LaZvwnzgBzSu+5ZZC+ABElwbCKvoMzZK3zy2AJNpehdLxvPIBufcz5d80W5IeIpdpYs0GZ3wTBfN8mAwjAAaSsaxyHYFbt1GGMg4Ptz51EgZ2MOyNXzOi7BpWBdbM9zMOiueYp6xO+C+Bc8hBIysumiCiNsa45T4HicCLaqCS41FH8gblRn4yxTWpKQtSBC6FABSdxJbkS9HE/7vAuktlgOaLOhRWgqWD4f0abF8O80Xvrmj0WtokeMpj4iqlcyWPRbxXXNjkATnKTOdHtNYtx0Wdcc3EOSvj/dJG+t2J+VC0IRoDjf/9kqgBvbLt9RzKMhjfGcZS6pcOwlCTsU3eWaBgyuhALYefErvon7r; 24:AFdwR20s7iV3Bf07kMiR2LK01pqwL338cHVUwZJOIY7ptlPHq89DU03r1l54/R4j5CGmXUDY3MXIPqv4iTcgNd5pUHVlF0BI6oNOxuJ9hUA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0202MB2548; 7:ny0PE0Im64TWGwZgeQtpUViBfhwxQKlgIHJrSd6rk/3MhsUBMmhNfyAa89osUqYf3JNyv08AIL+2DmuGGIYO6dywQcd6J4EUk1rdEZvUsCFM5/3COAlrmm8EfcXXR2RQzWVwRAMqfIo0GLH0XKAS5ww6OjcySwkec1j5RSiuCOyTmsIZzbwCJOAwxzsLUpyvK4K+xQLhBxIY4/3LKHhaNzYoH2YHKf/dDfK0R1EsYK4LgkeqsL6MCt/Xg7yrZlEQHcWG98NI0NI8Pj7/pYXQZmyM3x7/HS49iPJ20SWOj5kOJMl3Of9c5Glojs7Wccb1Y560KOA1ijB0K/Yi6wZdBh+AZnh1mN4DPRtfnnPaMe/l3kaq0+3Cn0WLRoxXRWZUyW4RnSqC2TkJ45lAZof8ZqzlIY1FlaqvBeJcNWj8nxO4uDHjRA9yCl3i+cbDSog0ufNpPIRafsnq1XHH3/dN8KGrwOMt9TiVpycU8LfWZC/edzkc/uXhcMrbPxPUsqWx+XzLlKWf/68C+vjRyKV0c8HLcohkN7Py+ZlbrKcAyXpPQJdVPVpOxWkXeSwUvkvGNqtHNRSTHrCZbkIWpuU/uvqhBokcQrzKYQe4EqCCTTwbbEKonuZDOxFM9k9CffYaSKdVq4N5JiT0qidWtBahboygi3DrIDzkVX11kKffyv4QT0yjcoFIrphAv78ZUxkyjkKpnPSvoUpSzyuG9bBGqlGPnfltkRiThGVhUucUxx0PXKEGQQtW2meKtbIQHIlHWhN2ZBX7zGxzeHiQMkDRCpNNavNrCDTneEaAtE4OCiA= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2017 12:19:51.0144 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0202MB2548 X-Mailman-Approved-At: Fri, 07 Jul 2017 00:43:09 +0000 Cc: Boris Brezillon , 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. 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)