From patchwork Tue Jul 4 10:37:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9825749 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 7B94060353 for ; Wed, 5 Jul 2017 01:18:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 52AC722AFC for ; Wed, 5 Jul 2017 01:18:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 46A252623C; Wed, 5 Jul 2017 01:18:37 +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 C3C2723B32 for ; Wed, 5 Jul 2017 01:18:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4CF3C89F73; Wed, 5 Jul 2017 01:17:57 +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-ve1eur01on0124.outbound.protection.outlook.com [104.47.1.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 369A589C28 for ; Tue, 4 Jul 2017 20:08: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=QoIEvcHTHxzb4gM5586C3hfdBZEnn+DMmbntmMmiBA0=; b=I/yEd6V8ZieSj3BZxeOqBpMLP6ZKGUU6CKORc+4WzJv9CyCj2pvgMzgEv8LWdUHioy6cdMaDgD4D9a5NrdK/rJwan/3ptnW1LOQVI0iF7IDqkuVhhi3YzsJs3XeZA9YivXBvxxy4CLhQH1BHEEq8BbaSOtyZslBFxIiO5IyPjX8= 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 HE1PR0202MB2555.eurprd02.prod.outlook.com (2603:10a6:3:90::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Tue, 4 Jul 2017 10:36:29 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v3 10/16] drm: gma500: remove dead code and pointless local lut storage Date: Tue, 4 Jul 2017 12:37:06 +0200 Message-Id: <1499164632-5582-11-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1499164632-5582-1-git-send-email-peda@axentia.se> References: <1499164632-5582-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [81.224.171.159] X-ClientProxiedBy: AM5PR0201CA0002.eurprd02.prod.outlook.com (2603:10a6:203:3d::12) To HE1PR0202MB2555.eurprd02.prod.outlook.com (2603:10a6:3:90::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: eb7f1c1f-a6f4-4f69-a372-08d4c2c888a3 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:HE1PR0202MB2555; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2555; 3:vrwmfAo0Ujc37F3NDj2WqyN0nCIGRIRR/TFI6A5O8qRC8dMzhXE1O29id2XW+6obwmanEREyqJthqsCvhzBdDsokoGp16NU8KUZsAmmUyq3r1q0140VCWKaGSV5BcFz8cq5QpIrEwKwvfDzeDqAQwZUyMQx7TN+7HkwPiAI6ILYFy7Ojo0YWnoXZIkH5JC4A5podmNvDi17gkY9qQ5IrrQU+Pe9c+W/0KTbOLQe9rDO97KcdrUyLioxRsaOhNTVkp6z5RChcevfhjfg7TSKxo9rwy/5djQmncskhYGrNzxnJnxCUIUCDBNU4YZIPxyHZkMd/BF3b1d6PDXM5jw9aX02RbOwoSv+HwRpTfiscVQFECyRgpDnvV6vC7+TO1njEz9xhTcOqX9ytpJTA9FdD4QfH26wq5KHVWyPPzSUP+wqiD3KZljgP6lQy7ca85o7HtUBob2IskSMCMXFtq3F012cP4RlokLBnXXkWqks8zlIwnwoffE12N19iZSu2uq7gM8nskdKneTmUsU/VOrHGNgBJ38qp/YeAohVGJ1PZO6fKvGLNu4pXgW6kv3fcWVHs2qMrcXb/H+4IN+Jr44/cIBmO8oyorjqtFTHCd97ymnQsXn6P4dXp0YdsGYkX1tnVAVJTrMij+ws+PcdSN68DyzdFQdov10vNltyb/2DartUv51/MjdZg05o5jf/fQEuVYXM7eAqoLHzKh8d53q4JVw== X-MS-TrafficTypeDiagnostic: HE1PR0202MB2555: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2555; 25:1kl8lIUWDtBr5T2YY4byxYbt5l+lyVlFwUYAndm5n8WmUq3jliz3GGx1BYutpVR6EuEZi5CbQmZ7E3mAtmMcaHj0iNifa7FyPCi9CVff2c19vDhp1j9vaC+5IVM+0JUgm/yWWkEgt80R/Do5R2ex41B1vAvt2B7XIr3t0X17fU0/jp0WET8ctO/SDkeL48H7fKxEjWU16TzBlVr54nSva3GRg0LOGjern85qOMT59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T1hyuVr4EBxTSqqA38xlmPXtV/dMKXf9uf54lfsIktvDNHwqTmv6sSBdq/0qXfnt8oDeCP1d7GxxIrR3ELqBkR+JjQbi9ImPTXYBQvzCgBgTjWVOaNzxJrIwDSP/8QRsvcj1CZzfu0wepLLG5eTn8qMjgEuHMQfyEYj5brNm+gxV1a1AHwKZj5nk8CCjdsBjQrXl2OMA/F0ogkyTfEU1U8fZHY8SMYMunoUQ//VHXzY2HAgqgi0isnwDohE8zg9ODnvuI7jFufWo0cKK4Y1x3dhSNzN6KsDssuaiyGKrq1f/USrd3KkxC6C/8ZQOzFUi9jwcp3V4f35gDr/r9ZcditeqvOGo45fcY= 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)(10201501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(6041248)(2016111802025)(20161123558100)(20161123562025)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6043046)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0202MB2555; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0202MB2555; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2555; 4:dd5Y9pAoKW8BjyL7+qAHUn2zzVRfTsLtN0y3i3JH?= =?us-ascii?Q?ZdXCLDrcM3ASNMIgJmoXsNbWnzLTH4qahJ8gNjuHDNWZ2YGFCI4Y8PZq9/cd?= =?us-ascii?Q?5kkJukwGgBzfL5fbbQQQlUoVHQd2cutYjfEB8ZZDWKUvYN7fiqtOw5W1x+w+?= =?us-ascii?Q?YCut9puS3dD4rp+skghnrwP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+Wdd0+siMRIEvQ2q++c8vOu6SRhSyg5Obr/KaO7ZlRtGcH7xwHQb7/kB1?= =?us-ascii?Q?YVzBEcd0Zrzh7HjkYEQVJ4TfChmV7Y8I45HScMWE49yv2xxBuoEFSk/GZkGR?= =?us-ascii?Q?I5DFplzfI+LDzyx2D44pivigGh2Ao5uM31sa4UvBGVZCOQ7Ew53bNON+Srqx?= =?us-ascii?Q?DTRh6O21zxm17rh0Vk8=3D?= X-Forefront-PRVS: 0358535363 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(39840400002)(39400400002)(39410400002)(39450400003)(8676002)(81166006)(7736002)(47776003)(189998001)(3846002)(36756003)(305945005)(50466002)(6116002)(50226002)(53936002)(86362001)(33646002)(66066001)(2906002)(478600001)(42186005)(2361001)(74482002)(2351001)(38730400002)(110136004)(4326008)(25786009)(6506006)(6512007)(54906002)(5003940100001)(6486002)(6916009)(5660300001)(6666003)(2950100002)(50986999)(76176999)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0202MB2555; H:orc.lan; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2555; 23:IuPBA+6Ll/7jHQI50ZX0UhEaWf8IIgd1xKWrPQG?= =?us-ascii?Q?Wz8NGbWlaAB/a4arvyDWJ4M/wWS0PGUqIBBqMXZlMq5pWVo2SlNrMRrD5bU4?= =?us-ascii?Q?RsXsXXScoVOq3iA97Zm7wHcJLHHxCZfA29KHnNBobOgC0pzBSUTiLpyeMIb2?= =?us-ascii?Q?1y9UJ3z3yDRPrrEyRQzFaoYLsWEa5kyKQHj2M2aC5/5846JKzk6Iczi95Bux?= =?us-ascii?Q?5ZFh58VpIcxpLdh7Ywufl+p8qT0vj99jMPRx4LJapnafd7f40KqsFD9YgZWZ?= =?us-ascii?Q?Las9pF9kwJRA+5tJfsVHHfsgDiLzyh42qXXjSaM+uD1NhFHyB+xSCSctwXi+?= =?us-ascii?Q?piG3Ab8NCaHavKWDiCXfzAl9/oBdPTmBGZg8Lfmx4gQRjV6EqawgLojXcFC8?= =?us-ascii?Q?oWqq6Vw6o9+e2eSEIqH1IKdb9dHkbkRx4EpU5YUpBbT/RvLSlJkd73ts4c5i?= =?us-ascii?Q?ykBAfda9GWYzLzspZClxbyxs+IRST/5Uze2LKgqCKFaejJlhN/D2lhjge6fY?= =?us-ascii?Q?llb/FCr7ZKXgsoNlzZ5TBodeaHpd1NQQw3fFgJYe4za8b+MaWfuNCkNxugFk?= =?us-ascii?Q?NTznyIfNb18RAC9+Iq9DRZk5g6A3URdu5iNVb5xD/EV8++EJVM91kdlxXiP2?= =?us-ascii?Q?T/VkHTGNDRd+vXYDhL+iKfKcbBCzSFup9CKeDBxLhjOyaizSWC9WRukRhl5e?= =?us-ascii?Q?oHEIJeYPmUQ9v7CJOafNZnvRuBe4lVTCqnvucVwslMglqQVUnpTiwCV7DXuW?= =?us-ascii?Q?q5fSM6fZxswajP8c9xls+dm6Zy//0lTaFXtrk/STcACc51Yx/M/UakJoOcKU?= =?us-ascii?Q?CjHqmWPrfARYbgufgY3n8Xsn9KkfCAOnRDFA+EgPDFNl/92Od0A5o1f/6ve+?= =?us-ascii?Q?PadijKdutfTx0ZM2DMAQpEQ/YbwOHDeZPFjRFG35c5H3up4io1bYZpiXi96t?= =?us-ascii?Q?/xvMvzj8ARFrwWcj84tsLYUwaNZvEbYOJsF5xBTcVTSsPk78s8t6yAku18bc?= =?us-ascii?Q?mBtfVZYIg3bCWJiolg5k3KEVZT7txpEctYpXsXUFWXW83HVqiYVUkBZo6OjU?= =?us-ascii?Q?FxOIVsC/nqI6oZgaH0OaeP7IM/KKw?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2555; 6:pPnpQFnvEyP8ISDKMiKPL4x/mHMY+lPTy8G8JO7l?= =?us-ascii?Q?nWGLU8KTWU5misdAqTtAXzmL3z6rEiCv+tm8e6rBlGlVs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x8KxU97JpC2fRR/75vW1cIXm2PI1ICcpc+N1buce0CD7?= =?us-ascii?Q?kQk=3D?= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2555; 5:vRZZB3TgvxZjoRa/+f8oZma/d9sHxSw8UZewHWg11BihROd014UMgoERVvBdWAOKwf6vm3PHSEYyvFtdUlsUOKhqtbhNd41TOh1RcRWtuii+lMDSx2TZmOf1Dj+1XM/+wxriP0VO/JQh2ZY8qcJm+P4MGBJbRFPO/aZUiR/kUbNpdqIIuhBynVX1lh+S2xFUMeMNEg85hKSmXb1Sm6aVcQ4/b55u4pR946Cbe55vDyIDd7yI8bXuHAn1YNpI0knunaTC10A/pIB32WqGsyMK5yJ7foNVQVcqmIybhxvPMdJ1QSfjUsPUBOUUM8O6M4IR9i8cidTPXCcuSR0IKD/ucWJ40d5TPUrfGxzdoIbq/M2Lnp21Qva25ETNoc2J++a1mQwNJ2/pucPhirtpGlVt3R0R5jknMC5fbPc8qjVnW89ZOExwI+G45cthFdzU923t98T6MK8ctpxmLKkh3vD1qgZIlo6EI83mY5kvt0R9SDVHfwhmCAlxOSERB/awRgyl; 24:ebThiLyfqUY6loJtcefcb9BEYUsf1thK/bnIoyPwJrim/Tmg/BK/J16t70L5f07fJtAb6V/o83FqiiZWlF7jzoNMV4Hum+7UAS0yH/SolX4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2555; 7:QZL8417G91XdU2gmfIfJ2omg36n68ctzqHnSYxx3c9f1G8E4AopJe+gHEq6nsHrkbkqqsoOK43/wRe0B1tbZiNlNdP2qAYiWYoZSfnZYJyJT3tpdvrB1Rd1wwk4+FB6AEo+yvZOfMBDoYb4sA/eXoOQhc+YNFNR/gZKe4RJtIEdME6L+yD0/dUURG/ACFPelNPftErz54tR16J8GAqlBLNtWXpztXyj81Xt0gT4QNOJvCZ9C2XBjXowqD9f+v8zF6g8LacLawk+7HQ0q563t7qg6I065Hrn3JIuBKCC4xE5peseA8CT+oZ7zD9xRSyHMP5WftmdODw18s7K2MU3pwb4hlmG0tL8CBZUgNVnPa7wDVEzvy8xLo+auOk5XK6h5mOnsyhd9iuq8DjqjqFX6ukl4YFc6MxlPb5eyQEjs8sqshuLKJSNyHmmyf2KP3VJlPmOwC/2tF61f+xlRYb8qMV8mYQ8bet9ug5k2WFtplwfI2fwW8q/236pTufvJomz/NLdZb7ZqxSVnH6ykannmZquvVVr/XSOJ5q6ZPUTuuPywkAWaoEtWVME8Pyjih9p/l0C3awa53jdluGRqnyObOANQkXzLuZ251/7aTmdV0672q/CBWVn6Nnt32zeAi+Ey77fEpFFt0nIce7Mn+TnNcE38yj5lynWDJe8vyMMVS4ChytOKmcPvl44sV4pjt30HftAnhP4sKII6G7PQ1KTgkPqF8NXPU6BGGnjjd3bhMK40mzN066xH/c7Fhu4GWJzGgt8km9ZoleR/Jrpj0WeOn4FXsjOqHzgcpRWOzrW47fg= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2017 10:36:29.6818 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0202MB2555 X-Mailman-Approved-At: Wed, 05 Jul 2017 01:17:54 +0000 Cc: Boris Brezillon , dri-devel@lists.freedesktop.org, Daniel Vetter , 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 .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/gma500/framebuffer.c | 22 -------------------- drivers/gpu/drm/gma500/gma_display.c | 32 ++++++++++-------------------- drivers/gpu/drm/gma500/psb_intel_display.c | 7 +------ drivers/gpu/drm/gma500/psb_intel_drv.h | 1 - 4 files changed, 12 insertions(+), 50 deletions(-) diff --git a/drivers/gpu/drm/gma500/framebuffer.c b/drivers/gpu/drm/gma500/framebuffer.c index 7da70b6..2570c7f 100644 --- a/drivers/gpu/drm/gma500/framebuffer.c +++ b/drivers/gpu/drm/gma500/framebuffer.c @@ -479,26 +479,6 @@ static struct drm_framebuffer *psb_user_framebuffer_create return psb_framebuffer_create(dev, cmd, r); } -static void psbfb_gamma_set(struct drm_crtc *crtc, u16 red, u16 green, - u16 blue, int regno) -{ - struct gma_crtc *gma_crtc = to_gma_crtc(crtc); - - gma_crtc->lut_r[regno] = red >> 8; - gma_crtc->lut_g[regno] = green >> 8; - gma_crtc->lut_b[regno] = blue >> 8; -} - -static void psbfb_gamma_get(struct drm_crtc *crtc, u16 *red, - u16 *green, u16 *blue, int regno) -{ - struct gma_crtc *gma_crtc = to_gma_crtc(crtc); - - *red = gma_crtc->lut_r[regno] << 8; - *green = gma_crtc->lut_g[regno] << 8; - *blue = gma_crtc->lut_b[regno] << 8; -} - static int psbfb_probe(struct drm_fb_helper *helper, struct drm_fb_helper_surface_size *sizes) { @@ -525,8 +505,6 @@ static int psbfb_probe(struct drm_fb_helper *helper, } static const struct drm_fb_helper_funcs psb_fb_helper_funcs = { - .gamma_set = psbfb_gamma_set, - .gamma_get = psbfb_gamma_get, .fb_probe = psbfb_probe, }; diff --git a/drivers/gpu/drm/gma500/gma_display.c b/drivers/gpu/drm/gma500/gma_display.c index ccf8c33..3bf65d4 100644 --- a/drivers/gpu/drm/gma500/gma_display.c +++ b/drivers/gpu/drm/gma500/gma_display.c @@ -144,33 +144,32 @@ void gma_crtc_load_lut(struct drm_crtc *crtc) struct gma_crtc *gma_crtc = to_gma_crtc(crtc); const struct psb_offset *map = &dev_priv->regmap[gma_crtc->pipe]; int palreg = map->palette; + u16 *r, *g, *b; int i; /* The clocks have to be on to load the palette. */ if (!crtc->enabled) return; + r = crtc->gamma_store; + g = r + crtc->gamma_size; + b = g + crtc->gamma_size; + if (gma_power_begin(dev, false)) { for (i = 0; i < 256; i++) { REG_WRITE(palreg + 4 * i, - ((gma_crtc->lut_r[i] + - gma_crtc->lut_adj[i]) << 16) | - ((gma_crtc->lut_g[i] + - gma_crtc->lut_adj[i]) << 8) | - (gma_crtc->lut_b[i] + - gma_crtc->lut_adj[i])); + (((*r++ >> 8) + gma_crtc->lut_adj[i]) << 16) | + (((*g++ >> 8) + gma_crtc->lut_adj[i]) << 8) | + ((*b++ >> 8) + gma_crtc->lut_adj[i])); } gma_power_end(dev); } else { for (i = 0; i < 256; i++) { /* FIXME: Why pipe[0] and not pipe[..._crtc->pipe]? */ dev_priv->regs.pipe[0].palette[i] = - ((gma_crtc->lut_r[i] + - gma_crtc->lut_adj[i]) << 16) | - ((gma_crtc->lut_g[i] + - gma_crtc->lut_adj[i]) << 8) | - (gma_crtc->lut_b[i] + - gma_crtc->lut_adj[i]); + (((*r++ >> 8) + gma_crtc->lut_adj[i]) << 16) | + (((*g++ >> 8) + gma_crtc->lut_adj[i]) << 8) | + ((*b++ >> 8) + gma_crtc->lut_adj[i]); } } @@ -180,15 +179,6 @@ int gma_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, u16 *blue, u32 size, struct drm_crtc_state *state) { - struct gma_crtc *gma_crtc = to_gma_crtc(crtc); - int i; - - for (i = 0; i < size; i++) { - gma_crtc->lut_r[i] = red[i] >> 8; - gma_crtc->lut_g[i] = green[i] >> 8; - gma_crtc->lut_b[i] = blue[i] >> 8; - } - gma_crtc_load_lut(crtc); return 0; diff --git a/drivers/gpu/drm/gma500/psb_intel_display.c b/drivers/gpu/drm/gma500/psb_intel_display.c index 7b6c849..8762efa 100644 --- a/drivers/gpu/drm/gma500/psb_intel_display.c +++ b/drivers/gpu/drm/gma500/psb_intel_display.c @@ -518,13 +518,8 @@ void psb_intel_crtc_init(struct drm_device *dev, int pipe, gma_crtc->pipe = pipe; gma_crtc->plane = pipe; - for (i = 0; i < 256; i++) { - gma_crtc->lut_r[i] = i; - gma_crtc->lut_g[i] = i; - gma_crtc->lut_b[i] = i; - + for (i = 0; i < 256; i++) gma_crtc->lut_adj[i] = 0; - } gma_crtc->mode_dev = mode_dev; gma_crtc->cursor_addr = 0; diff --git a/drivers/gpu/drm/gma500/psb_intel_drv.h b/drivers/gpu/drm/gma500/psb_intel_drv.h index 6a10215..e8e4ea1 100644 --- a/drivers/gpu/drm/gma500/psb_intel_drv.h +++ b/drivers/gpu/drm/gma500/psb_intel_drv.h @@ -172,7 +172,6 @@ struct gma_crtc { int plane; uint32_t cursor_addr; struct gtt_range *cursor_gt; - u8 lut_r[256], lut_g[256], lut_b[256]; u8 lut_adj[256]; struct psb_intel_framebuffer *fbdev_fb; /* a mode_set for fbdev users on this crtc */