From patchwork Fri Aug 4 10:30:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9882871 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 C097E6031B for ; Sat, 5 Aug 2017 02:22:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA4A1286D9 for ; Sat, 5 Aug 2017 02:22:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F094286F6; Sat, 5 Aug 2017 02:22:30 +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 98B5F286D9 for ; Sat, 5 Aug 2017 02:22:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0FCD96E436; Sat, 5 Aug 2017 02:21:22 +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-he1eur01on0124.outbound.protection.outlook.com [104.47.0.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 301316E3AE for ; Fri, 4 Aug 2017 10:45:02 +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=bjL7PNWU3a251S9xYtbXcGSw5KNq5o1lKAma2EOCVkc=; b=uoWZzVjMKE3BKVPPfuIHGrW/QnoOx6TY166Y/6rUH6niiK3c6yfdZvVcerz5OWtJWtEYAPBDzQkKWeSkrh9nqF4qxDIg1mtJHRoWJyCVOhOCdUJPsuBfVOH36p2nLd2AsngvN8Hp2VBpAXrjt33iHslmGr3MBDR8NCQw7bi8UUY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (81.224.168.30) by DB6PR0202MB2552.eurprd02.prod.outlook.com (2603:10a6:4:1b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1304.22; Fri, 4 Aug 2017 10:30:53 +0000 From: Peter Rosin To: Daniel Vetter Subject: [PATCH] staging: vboxvideo: remove dead gamma lut code Date: Fri, 4 Aug 2017 12:30:34 +0200 Message-Id: <20170804103034.2342-1-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170804093745.dtshsrmjl7jpjvp5@phenom.ffwll.local> References: <20170804093745.dtshsrmjl7jpjvp5@phenom.ffwll.local> MIME-Version: 1.0 X-Originating-IP: [81.224.168.30] X-ClientProxiedBy: VI1PR0101CA0082.eurprd01.prod.exchangelabs.com (2603:10a6:800:1f::50) To DB6PR0202MB2552.eurprd02.prod.outlook.com (2603:10a6:4:1b::10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 67d31fcd-351e-4daf-c73f-08d4db23e2ce X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(2017082002075)(300000503095)(300135400095)(201703131423075)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DB6PR0202MB2552; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0202MB2552; 3:UL+N6RYz65N54EUNLg3NC/EDLxYNcPiZtPpbvrfqPsRR9yFTvDXKUYZqYE8hP/2cNnpvt71/zjlu+e3COxktUNOCxTBZoJ+bQEr8E9C/IIeyRxfggmmeyBA2RQV4RUgOlwc9rwbOLjTb3il8UfvPoF4FSPc6et2zzeFOrNZoy8NCUzC5UoHR8lFYCQ7hwn2jMMoJWR0vPuqUtcnfy9MVq5csWaYh1FvyRoaWUiRgGWs+5bpVVBiP8h1OF24qT0Vl; 25:OGVt/K3sRSrTQbuGfkNBWN9kn3ND+/p0hHoukSllfaZ/QmmtjALHQzn9eJAxSBeyuvr21FExXdb9VaQcAe6htVsUWYWS1g2kJJEN083FgkEoBDfEVYt5zi5q4APLLIyvlo+Zi2q859DhJ6lPq7BFEqrBwNDCzW2bPF6jxeeoH/TLtCCXO3pBIDxpqF/f7D9RgojNoNY7aQ4UF4e3d3s0LzV4MnMrG0FbnDtz58rAX3u7Zd/NhAwSkfJiLlaZVlnbO/gzeSfuCQ7m/1P9al83KAxpeDWGtTHvh7Rf8becNsBxzC11UGuSa6A/kVCA6ZO0ORF/BDLt7WoZm1mmazIC5Q==; 31:49iZTbDkiwGAWlpFW7hes1b3btQRUYpX3jP3z/Gl8SzGNDNGLeiJT1Cv0ezt7+Jpuf8FNfIvuUToi00BiRAmqHl8/JJe1ki185BTSxwQPPxHCiPxuqiSv664GmTDVTsWFJNxICexdiZuE8v42pq1I3c4CvlpEijDjaQBK9kM+avCQXdpdgG/oEb58HDt1KMUUEyb7i9gj3YHjObVX4yqd+NGAfY4W90C9PBquut0dk0= X-MS-TrafficTypeDiagnostic: DB6PR0202MB2552: X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123564025)(20161123560025)(2016111802025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6072148)(6043046)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DB6PR0202MB2552; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DB6PR0202MB2552; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0202MB2552; 4:3YXSb1HZWxIzmHZfxNviYYJlUldzg5Ubb4+wkJPFZQwl25996liaiyoETtm6HS+SvsuLOmsiThEo1LPQQ+GZjgf2Lv/e2hfdoFZndz2w5kI9IdEQ3kF+u3y7EisVcK6enlFNYvUWTIOjRQ4KuYliA9OvCYLp2SCZhxj0C/mViiMX/KTzwjLigfHlWRoYzGekI7mb5CBdo64+DYm4vqeaa4G8YFJr9zpAoX0dLacgwtYlmUphcPJ9X9x3t9cwQ4n9 X-Forefront-PRVS: 0389EDA07F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(7370300001)(4630300001)(6009001)(39410400002)(39400400002)(39830400002)(39450400003)(189002)(199003)(6116002)(305945005)(97736004)(48376002)(36756003)(1076002)(6486002)(50466002)(54906002)(6506006)(76176999)(38730400002)(50986999)(4326008)(5660300001)(86362001)(110136004)(189998001)(101416001)(6512007)(74482002)(53936002)(6666003)(2950100002)(6916009)(3846002)(2906002)(478600001)(5003940100001)(50226002)(105586002)(106356001)(8676002)(81156014)(7350300001)(81166006)(7736002)(47776003)(66066001)(25786009)(42186005)(33646002)(68736007)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR0202MB2552; H:orc.pedanet; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-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1EGwWr36A9MEhAKRWLvyYkuuyg==; 24:wqKiDn9OAGliKyM2SQBYwCgyvzGOY9syyev2L79+hhAkGHZN+W+w852zfFrgRCTu1+wZXwr8lHUeyF1M5Vc2RmUu2Q0qvGA5dPJhj6h5mm4=; 7:J/isVoVJGUdJKyN43vIOyne6Uh/ZYuwkXtKbIy7a9NcHdFOFEP216yFqTiawSuLgV5nSzawZ2L1U+ISGpyjgIrmsUwa6AaXcjBSEHPVZj0LSBD8u4CgrImh2wnJCkyHasw/o71wKANOgyoZNVV2iIaN0uTLejMI26MavWGRHrxT1dKChr5/TNxpDOTLC3ReAI7EAQtMBPXotq57mX58yEZLdCYeSZPH3wikqBh9olvY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Aug 2017 10:30:53.1623 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0202MB2552 X-Mailman-Approved-At: Sat, 05 Aug 2017 02:21:09 +0000 Cc: devel@driverdev.osuosl.org, Boris Brezillon , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, 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 that was not doing anything sensible anyway. Signed-off-by: Peter Rosin --- drivers/staging/vboxvideo/vbox_fb.c | 15 --------------- drivers/staging/vboxvideo/vbox_mode.c | 5 ----- 2 files changed, 20 deletions(-) Hi Daniel, Here it goes, but do you really need me to resend v5 14/14? Cheers, peda diff --git a/drivers/staging/vboxvideo/vbox_fb.c b/drivers/staging/vboxvideo/vbox_fb.c index 35f6d9f8c203..bf6635826159 100644 --- a/drivers/staging/vboxvideo/vbox_fb.c +++ b/drivers/staging/vboxvideo/vbox_fb.c @@ -317,22 +317,7 @@ static int vboxfb_create(struct drm_fb_helper *helper, return 0; } -static void vbox_fb_gamma_set(struct drm_crtc *crtc, u16 red, u16 green, - u16 blue, int regno) -{ -} - -static void vbox_fb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green, - u16 *blue, int regno) -{ - *red = regno; - *green = regno; - *blue = regno; -} - static struct drm_fb_helper_funcs vbox_fb_helper_funcs = { - .gamma_set = vbox_fb_gamma_set, - .gamma_get = vbox_fb_gamma_get, .fb_probe = vboxfb_create, }; diff --git a/drivers/staging/vboxvideo/vbox_mode.c b/drivers/staging/vboxvideo/vbox_mode.c index f2b85f3256fa..996da1c79158 100644 --- a/drivers/staging/vboxvideo/vbox_mode.c +++ b/drivers/staging/vboxvideo/vbox_mode.c @@ -134,10 +134,6 @@ static int vbox_set_view(struct drm_crtc *crtc) return 0; } -static void vbox_crtc_load_lut(struct drm_crtc *crtc) -{ -} - static void vbox_crtc_dpms(struct drm_crtc *crtc, int mode) { struct vbox_crtc *vbox_crtc = to_vbox_crtc(crtc); @@ -330,7 +326,6 @@ static const struct drm_crtc_helper_funcs vbox_crtc_helper_funcs = { .mode_set = vbox_crtc_mode_set, /* .mode_set_base = vbox_crtc_mode_set_base, */ .disable = vbox_crtc_disable, - .load_lut = vbox_crtc_load_lut, .prepare = vbox_crtc_prepare, .commit = vbox_crtc_commit, };