From patchwork Fri Aug 31 10:20:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 11128 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 1800E23E41 for ; Fri, 31 Aug 2012 10:23:23 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id E0BB9A188C4 for ; Fri, 31 Aug 2012 10:22:44 +0000 (UTC) Received: by iafj25 with SMTP id j25so4510295iaf.11 for ; Fri, 31 Aug 2012 03:23:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=M3+gP0fPncGPFOj5NyZOzXwRdcD5HRB4iQ1FdGBJjNQ=; b=faT4gogrro27basWMtBwkbWZcyrjO9X8LmUkZTH4vnXk4BEVgLeywdgf61vnGpYegx VH/wqpsb8i47NHVxocaIaBC7nibIff6FZhIvUgB1BRZYU2nBmQwrdXV8Vm/kAAwsIS0b KggDCF/Q2qPJuRfI3xqLJkPk9BOp6K3sluQ2EO14Zw6GLzI8tOiILTzS6DwQfvGjfdj5 vQeNSmMHWdpIJYyafH8HHevWz/gwRZREDUBn35WsdoqzWSSjNp0w+ewt74CV2LMZ1wyt Mh1h0hNU0egP2DHt2DTYKqEd5gvvwJzACrp7ckNte3/OZLQBzfpoB4BnVMclxvuTh2sv IxlQ== Received: by 10.50.180.129 with SMTP id do1mr2002615igc.28.1346408602229; Fri, 31 Aug 2012 03:23:22 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp4371igc; Fri, 31 Aug 2012 03:23:21 -0700 (PDT) Received: by 10.68.222.170 with SMTP id qn10mr16546169pbc.114.1346408601262; Fri, 31 Aug 2012 03:23:21 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id iq5si7821998pbc.314.2012.08.31.03.23.20 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 31 Aug 2012 03:23:21 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by pbcmd12 with SMTP id md12so5002614pbc.37 for ; Fri, 31 Aug 2012 03:23:20 -0700 (PDT) Received: by 10.68.129.131 with SMTP id nw3mr16760559pbb.43.1346408600661; Fri, 31 Aug 2012 03:23:20 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id kp3sm3148137pbc.64.2012.08.31.03.23.17 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 31 Aug 2012 03:23:19 -0700 (PDT) From: Sachin Kamat To: dri-devel@lists.freedesktop.org Cc: inki.dae@samsung.com, airlied@linux.ie, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/2] drm/exynos: Add missing braces around sizeof in exynos_hdmi.c Date: Fri, 31 Aug 2012 15:50:47 +0530 Message-Id: <1346408448-13928-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQm1qkOKgp+cz1c2M3eldl/CyoQ67QCm/9P6qEf8synGwA72C5joZo+zcctpxbx6669Xlg0h Fixes the following checkpatch warnings: WARNING: sizeof *res should be sizeof(*res) WARNING: sizeof res->regul_bulk[0] should be sizeof(res->regul_bulk[0]) WARNING: sizeof *res should be sizeof(*res) Signed-off-by: Sachin Kamat --- drivers/gpu/drm/exynos/exynos_hdmi.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 409e2ec..a4c6bbc 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -2172,7 +2172,7 @@ static int __devinit hdmi_resources_init(struct hdmi_context *hdata) DRM_DEBUG_KMS("HDMI resource init\n"); - memset(res, 0, sizeof *res); + memset(res, 0, sizeof(*res)); /* get clocks, power */ res->hdmi = clk_get(dev, "hdmi"); @@ -2204,7 +2204,7 @@ static int __devinit hdmi_resources_init(struct hdmi_context *hdata) clk_set_parent(res->sclk_hdmi, res->sclk_pixel); res->regul_bulk = kzalloc(ARRAY_SIZE(supply) * - sizeof res->regul_bulk[0], GFP_KERNEL); + sizeof(res->regul_bulk[0]), GFP_KERNEL); if (!res->regul_bulk) { DRM_ERROR("failed to get memory for regulators\n"); goto fail; @@ -2243,7 +2243,7 @@ static int hdmi_resources_cleanup(struct hdmi_context *hdata) clk_put(res->sclk_hdmi); if (!IS_ERR_OR_NULL(res->hdmi)) clk_put(res->hdmi); - memset(res, 0, sizeof *res); + memset(res, 0, sizeof(*res)); return 0; }