From patchwork Fri Dec 14 12:10:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Manszewski X-Patchwork-Id: 10732861 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DAD1F14DE for ; Mon, 17 Dec 2018 07:53:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D233A2949C for ; Mon, 17 Dec 2018 07:53:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C68F1299E1; Mon, 17 Dec 2018 07:53:42 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED 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 87AFA2949C for ; Mon, 17 Dec 2018 07:53:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CF6EC6E2CC; Mon, 17 Dec 2018 07:53:11 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1672E6F45E for ; Fri, 14 Dec 2018 12:10:36 +0000 (UTC) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181214121034euoutp010758d80e478582ad6cf153993f1364cd~wMc5gxwCv2420424204euoutp01k for ; Fri, 14 Dec 2018 12:10:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181214121034euoutp010758d80e478582ad6cf153993f1364cd~wMc5gxwCv2420424204euoutp01k Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181214121033eucas1p285a93be22fde9770583d2a2af6f307a9~wMc42asHR1566115661eucas1p2s; Fri, 14 Dec 2018 12:10:33 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 95.7D.04294.9BD931C5; Fri, 14 Dec 2018 12:10:33 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20181214121032eucas1p24af580721ebd6f86a4f9ddf701957ab6~wMc3_KReu1556815568eucas1p2h; Fri, 14 Dec 2018 12:10:32 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20181214121032eusmtrp1fb5b974b3259c515c3b73cd7d2114a9a~wMc3uCJlG2638626386eusmtrp1T; Fri, 14 Dec 2018 12:10:32 +0000 (GMT) X-AuditID: cbfec7f4-84fff700000010c6-19-5c139db971ce Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 00.91.04128.8BD931C5; Fri, 14 Dec 2018 12:10:32 +0000 (GMT) Received: from AMDC2034.DIGITAL.local (unknown [106.120.51.41]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181214121031eusmtip293d22b98bffcd885ff2210de090bdb53~wMc27XV0T0091800918eusmtip2i; Fri, 14 Dec 2018 12:10:31 +0000 (GMT) From: Christoph Manszewski To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/6] include/drm: color_mgmt: Add enum labels Date: Fri, 14 Dec 2018 13:10:16 +0100 Message-Id: <1544789421-5265-2-git-send-email-c.manszewski@samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1544789421-5265-1-git-send-email-c.manszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VSa0hTYRj22zk7O85mx6Pph4biysAiNSn5QpMUwUN/rH4UlaRLD27kjU3N W2ReKk3zBilas6A0rTTX1FyZJMs5yokXZC1MQxQvpeQ0ylRyO1r/nvd5n+d93vfjIzFay3cl ZYkprDxREi8mhHh772/Dwc77jpF+uXV7kanZwEclBj0PtVa38JHu9WOARlYWCVQxXoajmS+D OCqdnMfQwMALAerP/SZAqslRPhrW3CNQ9cBbHnquHROghz/acDQx2w3QWKUWoOrKWeI4zSif ZTGqpkKC6fg5wWeU+lPM+G0dj3n56Bqj05gEzB11E2DMKveTtueFQbFsvCyNlfsGRwul76uM WLKeSDf/KiBywCi/CNiSkDoM/4zrQBEQkjT1BMDm6kmcK5YBNBcs8iwqmjIDWJPnvO1YGMwR cHwDgIbysH+Ghto63NIgqCPw89gSYcFO1B64Xt5kjcAoDR8uTK5apzpSx+DUx3qrCKe84Ju+ JetOIiocds73C7g0d/jJUIhZsC3FwHrNI+sgSJkE0PRVz+NEYbB1rZvgsCOc06m3zLvhh8pi nDPkAWhatlxtKcoAfPe0COdUgVBlnNucRG7u5w1bNL4cHQK7eg0CCw0pe2j87mChsU1Y0V6F cbQI3rpBc+p9cF6tJrZjZ8wrgMMM1HdvbD1pLYDvG41EGfCo+R/2AIAm4MKmKhLiWIV/InvF RyFJUKQmxvnEJCWowObf+rChW34FNGuXegBFAvEOkbSCjqT5kjRFRkIPgCQmdhKdKXCMpEWx koxMVp4UJU+NZxU9wI3ExS6iLJuJCzQVJ0lhL7NsMivf7vJIW9ccEHDaLSKm/9z0d/+hmZ1n p4T2BeW68ajpEYf8rmBZh2hYtksbnqYM8gxQdYRo3vn7yNIzm107HLwqzOoN55jGA9kR0bi2 xMNu0C6wzRgq9TtRGqrM27PWG1s/JQ7ybF93un7Vm5Xcje+7GXd0dTmsQSTNvnwxrDitN2Po bFt+n40YV0glh/ZjcoXkL2NBTvBXAwAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrGIsWRmVeSWpSXmKPExsVy+t/xe7o75grHGOzdqmpxa905VovecyeZ LDbOWM9qcXz3UkaLK1/fs1lMuj+BxeLFvYssFv2PXzNbnD+/gd3ibNMbdotNj6+xWlzeNYfN Ysb5fUwWa4/cZbdY+HEri8WDl/sZLe5OPsJoMWPySzYHIY95a6o9Nq3qZPPY/u0Bq8e8k4Ee 97uPM3lsXlLvcXzXLXaPvi2rGD0+b5IL4IzSsynKLy1JVcjILy6xVYo2tDDSM7S00DMysdQz NDaPtTIyVdK3s0lJzcksSy3St0vQyzg6/QZzwUm2is8/WtkaGK+xdjFyckgImEi8u9jA3sXI xSEksJRRYunrzUwQCRmJeWf72CBsYYk/17rYIIo+ARW92cQOkmATMJW4ffcTWJGIgLLE34mr GEGKmAWOsUpMfL8KrEhYwFbi6ZllYEUsAqoSe058AlvNK+AusfP1WXaIDXISN891MoPYnAIe Est2LWEEsYWAal7N/MI4gZFvASPDKkaR1NLi3PTcYiO94sTc4tK8dL3k/NxNjMA42nbs55Yd jF3vgg8xCnAwKvHwHpgiFCPEmlhWXJl7iFGCg1lJhDesVThGiDclsbIqtSg/vqg0J7X4EKMp 0FETmaVEk/OBMZ5XEm9oamhuYWlobmxubGahJM573qAySkggPbEkNTs1tSC1CKaPiYNTqoFx XpOEfuM/U5YXsZW6reVMpy44+H2/uii8Om/Sm67q5PCehtwNDRKbvRbflet/miizca/yWh6+ 981LHEO+qq150ia9nN0vJH7eRseXca/X6rZM6rx0keeo/TZG98bdR47ty8jc1yj+1/q68wqV 33N5bbv8Tp/OXjG7/PPTrtC/uV0yxY0dYSeUWIozEg21mIuKEwHnrVeluQIAAA== X-CMS-MailID: 20181214121032eucas1p24af580721ebd6f86a4f9ddf701957ab6 X-Msg-Generator: CA X-RootMTR: 20181214121032eucas1p24af580721ebd6f86a4f9ddf701957ab6 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181214121032eucas1p24af580721ebd6f86a4f9ddf701957ab6 References: <1544789421-5265-1-git-send-email-c.manszewski@samsung.com> X-Mailman-Approved-At: Mon, 17 Dec 2018 07:52:24 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Ripard , linux-samsung-soc@vger.kernel.org, Bartlomiej Zolnierkiewicz , Christoph Manszewski , Seung-Woo Kim , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , David Airlie , Kyungmin Park , Kukjin Kim , Sean Paul , linux-arm-kernel@lists.infradead.org, Marek Szyprowski MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Range setting makes sense for YCbCr and RGB buffers. Current drm_color_range enum labels suggest use with YCbCr buffers. Create enum labels without colorspace specification. Signed-off-by: Christoph Manszewski --- include/drm/drm_color_mgmt.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/drm/drm_color_mgmt.h b/include/drm/drm_color_mgmt.h index 90ef9996d9a4..52f6d5221a0d 100644 --- a/include/drm/drm_color_mgmt.h +++ b/include/drm/drm_color_mgmt.h @@ -62,6 +62,8 @@ enum drm_color_range { DRM_COLOR_YCBCR_LIMITED_RANGE, DRM_COLOR_YCBCR_FULL_RANGE, DRM_COLOR_RANGE_MAX, + DRM_COLOR_LIMITED_RANGE = DRM_COLOR_YCBCR_LIMITED_RANGE, + DRM_COLOR_FULL_RANGE = DRM_COLOR_YCBCR_FULL_RANGE, }; int drm_plane_create_color_properties(struct drm_plane *plane,