From patchwork Fri Oct 31 14:17:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 5205011 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 337F39F349 for ; Fri, 31 Oct 2014 14:18:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 530DB201C7 for ; Fri, 31 Oct 2014 14:18:00 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 722E320173 for ; Fri, 31 Oct 2014 14:17:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 211816E79F; Fri, 31 Oct 2014 07:17:58 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 4B68089FD7 for ; Fri, 31 Oct 2014 07:17:49 -0700 (PDT) Received: by mail-wg0-f49.google.com with SMTP id x13so6587058wgg.22 for ; Fri, 31 Oct 2014 07:17:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3OFM/8hULoSMqBhalGWz4UbUjMNM+xPO5kgOi3orbyE=; b=cI2jBzylcjIkwU+ssUvAKaWSirXbVWwKnCkKC1uP0rr0N8T9YH1rdnOPlHcq/WbZF2 KbRT0BrlgYDg5sVB8BTARH0gTWq2/z1GmprVtyIgzkWQ0cFdSoXK+lb0NWxexagNA+K2 GikUFRY3GJAfQgsBT8Qu7I7fbH86zLfzGLI7u2C18NP67F11x4P0o3kYWzLc7qkjwMo/ pGFcJrufjnFQO+5AOuu5fw2Za4ZIrhSWELlE4h+v7t8n3Zj51E0PZb+GY5OFjzD7U1kn qgZhh8dospHXZl/nMwTR9M3a6POJwLsUu8g+zPy3vpBCzgl1pUduU9j/0SbzUj5dhIpr DKcA== X-Received: by 10.180.21.140 with SMTP id v12mr4286335wie.44.1414765068383; Fri, 31 Oct 2014 07:17:48 -0700 (PDT) Received: from jasmin.cbg.collabora.co.uk (pakora.collabora.co.uk. [93.93.133.71]) by mx.google.com with ESMTPSA id ce1sm12256825wjc.2.2014.10.31.07.17.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Oct 2014 07:17:47 -0700 (PDT) From: Gustavo Padovan To: dri-devel@lists.freedesktop.org Subject: [PATCH 7/9] drm/exynos: Save up space using bool var as bitfields Date: Fri, 31 Oct 2014 14:17:41 +0000 Message-Id: <1414765063-30598-7-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1414765063-30598-1-git-send-email-gustavo@padovan.org> References: <1414765063-30598-1-git-send-email-gustavo@padovan.org> Cc: linux-samsung-soc@vger.kernel.org, Gustavo Padovan 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: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan Save a few bytes by compiling them all in the same byte. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/exynos/exynos_drm_drv.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h index 9e4a7e1..f77e6aa 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h @@ -66,10 +66,10 @@ enum exynos_drm_output_type { * @dma_addr: array of bus(accessed by dma) address to the memory region * allocated for a overlay. * @zpos: order of overlay layer(z position). - * @default_win: a window to be enabled. - * @color_key: color key on or off. * @index_color: if using color key feature then this value would be used * as index color. + * @default_win: a window to be enabled. + * @color_key: color key on or off. * @local_path: in case of lcd type, local path mode on or off. * @transparency: transparency on or off. * @activated: activated or not. @@ -97,13 +97,13 @@ struct exynos_drm_overlay { uint32_t pixel_format; dma_addr_t dma_addr[MAX_FB_BUFFER]; int zpos; - - bool default_win; - bool color_key; unsigned int index_color; - bool local_path; - bool transparency; - bool activated; + + bool default_win:1; + bool color_key:1; + bool local_path:1; + bool transparency:1; + bool activated:1; }; /*