Message ID | 1468827864-21467-2-git-send-email-gnuiyl@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> 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 E1B28607FF for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 18 Jul 2016 07:44:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6C88200F5 for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 18 Jul 2016 07:44:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB9142094F; Mon, 18 Jul 2016 07:44:59 +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.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 81AD0200F5 for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 18 Jul 2016 07:44:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3E6EB6E268; Mon, 18 Jul 2016 07:44:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0085.outbound.protection.outlook.com [104.47.33.85]) by gabe.freedesktop.org (Postfix) with ESMTPS id A9AEE6E26A for <dri-devel@lists.freedesktop.org>; Mon, 18 Jul 2016 07:44:42 +0000 (UTC) Received: from BLUPR0301CA0004.namprd03.prod.outlook.com (10.162.113.142) by MWHPR03MB2462.namprd03.prod.outlook.com (10.169.200.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.534.14; Mon, 18 Jul 2016 07:44:39 +0000 Received: from BN1AFFO11FD044.protection.gbl (2a01:111:f400:7c10::115) by BLUPR0301CA0004.outlook.office365.com (2a01:111:e400:5259::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.544.10 via Frontend Transport; Mon, 18 Jul 2016 07:44:39 +0000 Authentication-Results: spf=softfail (sender IP is 192.88.168.50) smtp.mailfrom=gmail.com; pengutronix.de; dkim=none (message not signed) header.d=none; pengutronix.de; dmarc=fail action=none header.from=gmail.com; Received-SPF: SoftFail (protection.outlook.com: domain of transitioning gmail.com discourages use of 192.88.168.50 as permitted sender) Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD044.mail.protection.outlook.com (10.58.52.191) with Microsoft SMTP Server (TLS) id 15.1.534.7 via Frontend Transport; Mon, 18 Jul 2016 07:44:39 +0000 Received: from victor.ap.freescale.net (victor.ap.freescale.net [10.192.241.62]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u6I7iYlp005529; Mon, 18 Jul 2016 00:44:37 -0700 From: Liu Ying <gnuiyl@gmail.com> To: <dri-devel@lists.freedesktop.org> Subject: [PATCH 2/2] drm/imx: Remove imx_drm_crtc_id() Date: Mon, 18 Jul 2016 15:44:24 +0800 Message-ID: <1468827864-21467-2-git-send-email-gnuiyl@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1468827864-21467-1-git-send-email-gnuiyl@gmail.com> References: <1468827864-21467-1-git-send-email-gnuiyl@gmail.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131133014793961650; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(189002)(199003)(83322999)(97736004)(19580395003)(86362001)(50226002)(77096005)(36756003)(33646002)(76482005)(105596002)(229853001)(106466001)(81442002)(82202001)(73972006)(2950100001)(11100500001)(8936002)(87936001)(110136002)(586003)(81156014)(81166006)(19580405001)(92566002)(6260500002)(50466002)(2906002)(8676002)(7846002)(189998001)(68736007)(48376002)(4326007)(87572001)(5003940100001)(76176999)(73392002)(55446002)(61266001)(2351001)(50986999)(6806005)(305945005)(356003)(104016004)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2462; H:tx30smr01.am.freescale.net; FPR:; SPF:SoftFail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD044; 1:pe8xg2MKhF8gxP+GbqwX4jFDax9aj90w4EqZUdwrq6U9nJHoOorRchF4GUzBReV51xcYXE5M5GuzJlgwmc41/tRG0njTqIqeRGUN0WYw1GuLg0nrnGbomCfvGf7U4s4YFsFVId2vNek3jt+JN9zuMUtWJ6YVitqJT+1NShWqBhL418Cr33+79VI1VPqYTBXue6Sg+miXEg2tsbQSwq78o6qpWVM7QozB6oKC7nE/UROKxG0/PvuXxUl38Gp6FyrcG8u1+hUS+UdteYV9l0HM9dlR1gayBvhg5UxlGiV3pr8f1+s0DqVv90BXlxGPKN6tGWgAStD7qKLVlzw+6YMfxbGKr2yRcSFY5YkOhWqdJbyU5LrDd4g1ASOMQPsFivAJjL1oY3F2nl97lAoDwLGPyxB28HutrT3YCTLv0wcCLpFddR/XZ9O3Qbw4YvrhK6+QASn2OUFo6ckNX3eoQlMCxzSNqie9WZq0N/MPGYgtH5wfTl0UfAh6MEnjhBsa9BoX+uwG543zcqw7mVnAblO/oXv9pNMDcyxxDPvFGpYxe+2+5Q8hMBo6Ud/K82MkqVzufzcpYp3SWOOm9ILi5O8QSQ== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 31e39fca-2c75-4ac2-c0b2-08d3aedf5f95 X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2462; 2:PBUldmXOOv76Xs94gYwiWgXF1gRTzntGpDXwDGLHETptD5hHnvW8KjXNl0hYW+xEgA3365nCLI7njLD8C7Jojb3z/BxNQEGVIMk4zaG7KCpUbf3q0CZl88HlY/hdGLO/LJUkeb9l0OW6K3rPM0uT3AbeJZYTYQwKMcYARko57Jv9It2L0xkbPP5kbSt84bg0; 3:J0W8YiEfKSEo6YxauNsqgctngZ1IlvxXa3ZXsP2+ZbJH7KTRKNO33ugrJwaVjfGrUf9ilz/6EcHbt1CFeMuMgfnx8/OlOzynJRVYgAxTxSzKiMfDSjPh+ZASdyqGdqJClhqA0RG8u9YePS70hLmd0nTuQf4T4vbtuqZNCpP5sRnRvL8o+xbb9sv7yQGSY/k6sXJEHMHPZStxDl0GMcOKpg2QcyA4kIHkO33h0D8+sGA=; 25:N9GA3UheIEdjahOKJDbx++rHyex5sflqnTB/2IUtuLDU7bFBoMn69UNmigPewO+yANlpSbgtw/kgDuwk1JOSl2loa04QOJ9y1WnNRjN/PflaZxCQo/oUCTRkyRGHv81fjei9No3iO9Xojej+epdYr3lhhtYmIYtcIM5qqyBsbAANF3RPTX3j2J/3ZUxlqa6O/Qpep2J5OFkHutGv0YBRBxfp0M4Dq3dfdULTJo1ObHUOgQzzTuu0wDPBqmJeg6FY2AA6WOI8vTXEh8VLbT9PtY6YdrVECJqbdxJnX2e/bmm2t6d9esUn9tsjTsmgkw/aJpzjFbG0bOYcA3xbgaq+yEet7PLlqRXB8u0+X04JK4yPKv9SAc3ysu/4bvWugBa/xKjKhZSg6V69oWbbTEqOEhgfpAIHLtrP/oGIoGXeRO4= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:MWHPR03MB2462; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2462; 31:cKQ1u7RXG/b0oPz2nWRbRNPaVdWxtmJuNytVxwVe7Y+Tga+JjV7E5D5qjb+0+xOfPjzZyOXGc4XWMik3k8xgDOjF4NxjEm4SssPCNEC6t3+9H0twBMUnIStVG07jtPOUP4jAbsYy5LHs2o7+AVFk7zcun3fER5vbqlW6NYx1qOcowkD7EJ++H7FFDHxKtVgMpT3DV+tJ7r9vJU1hSfxLxQ==; 4:2mdt61OQSuDwst3ic0C+28UNhA8Uu7tj9MPXbmT8cqtWpxEHs3pOjnrgc9GM3YzXaMcVCefRntuB/X/JGYf/AXZkIiMi8wS8q3VW1Ves/jWEwPmLPxZeaBXJq/MuIEytORA5kMfVK8S+ZxvlAQFGFydtZ5OF63QjqyRZLUyqT00IxOMfx8lBtZ4sgxoXim7j2CWsiy7j4cgltPc1hNjjNkE6gd2MCraUFoVMY7MwBUUOocc9UqZFfaJCY2Jr1PCLAuhYSoLIp4ENLLlJd7F1VdsHhUdgVHx9JQtXglSR/KjCY6fuh8hrnMvCKBu8xggWvxiGvXUb6b00o5LF4p8ehMTHSRs4cMAGolmU424f9shrQ3YR0Ut2U6msboVNhaUQfjOolziGN5Ffly1CBKzT+L59yqHT99I0PqZZ2zIayMAYaph+OgJrSso9oqQd543e9Xn5bgj+YYs8wfmPYEt89FUZIclSSakKPqjRBbBQnXM= X-Microsoft-Antispam-PRVS: <MWHPR03MB2462630FEA7ECC2EBAFAA4B0DB360@MWHPR03MB2462.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13024025)(13015025)(13017025)(13018025)(13023025)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:MWHPR03MB2462; BCL:0; PCL:0; RULEID:(400006); SRVR:MWHPR03MB2462; X-Forefront-PRVS: 00073DB75F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2462; 23:6D8qLHWryB2SjLYoOmbsN9uFFMoMo7x3uP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bmivgkYQFd8FT4hvLUoliXSRvahV1R/n1L/ycAm8XJaD0HcT5uKwFGu0zdy70PzeS2z0c8f7DbrCmKPW8fd60tJpFUISZ+hKGvR4OaM0yTVkKgOYA/n8LfCvTu2zJgm8s9I4M/mhMZyGLH8+8ssvU1TFQFSe0P4SV7LBtYhU2PIpIkzh3c2RZmFVtj1KM+0zNaF+7XBAUAl2vy7NWIvKYoI93ftZiZyYyxMTuNv1QcBJ+OsX5jy6PQcHf SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2016 07:44:39.2245 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2462 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index 1fd1900..1aefced 100644 --- a/drivers/gpu/drm/imx/imx-drm-core.c +++ b/drivers/gpu/drm/imx/imx-drm-core.c @@ -58,12 +58,6 @@ static int legacyfb_depth = 16; module_param(legacyfb_depth, int, 0444); #endif -unsigned int imx_drm_crtc_id(struct imx_drm_crtc *crtc) -{ - return drm_crtc_index(crtc->crtc); -} -EXPORT_SYMBOL_GPL(imx_drm_crtc_id); - static void imx_drm_driver_lastclose(struct drm_device *drm) { struct imx_drm_device *imxdrm = drm->dev_private; diff --git a/drivers/gpu/drm/imx/imx-drm.h b/drivers/gpu/drm/imx/imx-drm.h index 0049b77f..bdaa381 100644 --- a/drivers/gpu/drm/imx/imx-drm.h +++ b/drivers/gpu/drm/imx/imx-drm.h @@ -13,8 +13,6 @@ struct drm_plane; struct imx_drm_crtc; struct platform_device; -unsigned int imx_drm_crtc_id(struct imx_drm_crtc *crtc); - struct imx_crtc_state { struct drm_crtc_state base; u32 bus_format;
There is no one calling imx_drm_crtc_id() and it is just a simple wrapper of drm_crtc_index() without doing any thing fancy - the drivers may call drm_crtc_index() directly. So, let's remove the wrapper. Signed-off-by: Liu Ying <gnuiyl@gmail.com> --- drivers/gpu/drm/imx/imx-drm-core.c | 6 ------ drivers/gpu/drm/imx/imx-drm.h | 2 -- 2 files changed, 8 deletions(-)