From patchwork Mon Nov 26 04:49:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 13191 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 EEA3423EFB for ; Mon, 26 Nov 2012 04:55:52 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id A2380A192BA for ; Mon, 26 Nov 2012 04:55:52 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id c10so4033426ieb.11 for ; Sun, 25 Nov 2012 20:55:52 -0800 (PST) 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:in-reply-to:references :x-gm-message-state; bh=ySFwwPJGnyrDBQ6Pst8NNcfLLHOQEbUkZptji+BRRww=; b=NFfVh6x/2IccOQjgqmFKlgv45/qUU06oKaM0J7Ow1aT37UkQsFUIAkQrUdrSLaoOf6 kDN3zac6qW+eN+9/W7QxiuegyCv2R+B4+u8hQUyNdkWqV41yu/YSZrbhCW1gxqE/QuQH 3/uZ0WbfqxIOgl/O5v/Ka96Oh0eBpZ5fBXbI0YNQYHruz63FiMBWj9vm6+/rv55+dnvN i+g7VIh5WWa+vQMAAX2K7nqAgAn75phmDdp4YuvN8Cx0qiBLv3oPMccnVUu/Zj4tsyOA gcWguZIBSzCisYxnKp5rewN5Ne3Yuh378tFDxGhCBNfinPVCL1BwCOdtPhTcSB2P9w5y 9XfQ== Received: by 10.43.7.132 with SMTP id oo4mr8775585icb.6.1353905752422; Sun, 25 Nov 2012 20:55:52 -0800 (PST) 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.67.148 with SMTP id n20csp201152igt; Sun, 25 Nov 2012 20:55:52 -0800 (PST) Received: by 10.66.76.162 with SMTP id l2mr29680811paw.13.1353905751911; Sun, 25 Nov 2012 20:55:51 -0800 (PST) Received: from mail-pb0-f46.google.com (mail-pb0-f46.google.com [209.85.160.46]) by mx.google.com with ESMTPS id y1si17399030pav.335.2012.11.25.20.55.51 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 25 Nov 2012 20:55:51 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.46 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.46; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.46 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-pb0-f46.google.com with SMTP id wy7so7644271pbc.5 for ; Sun, 25 Nov 2012 20:55:51 -0800 (PST) Received: by 10.68.233.196 with SMTP id ty4mr34498521pbc.23.1353905751678; Sun, 25 Nov 2012 20:55:51 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id g1sm8082844pax.21.2012.11.25.20.55.49 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 25 Nov 2012 20:55:51 -0800 (PST) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: t.stanislaws@samsung.com, s.nawrocki@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 6/9] [media] s5p-tv: Add missing braces around sizeof in hdmi_drv.c Date: Mon, 26 Nov 2012 10:19:05 +0530 Message-Id: <1353905348-15475-7-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1353905348-15475-1-git-send-email-sachin.kamat@linaro.org> References: <1353905348-15475-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQk4IhfFbFzZe+rdaageMaFFG8Yn03j93gDcv8J2i5PloBTlmnD9GFGAhVQg7pN57oHd4NoY Fixes the following checkpatch warnings: WARNING: sizeof *fmt should be sizeof(*fmt) WARNING: sizeof *res should be sizeof(*res) WARNING: sizeof *res should be sizeof(*res) WARNING: sizeof sd->name should be sizeof(sd->name) Signed-off-by: Sachin Kamat --- drivers/media/platform/s5p-tv/hdmi_drv.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/s5p-tv/hdmi_drv.c b/drivers/media/platform/s5p-tv/hdmi_drv.c index 8a9cf43..c48eadf 100644 --- a/drivers/media/platform/s5p-tv/hdmi_drv.c +++ b/drivers/media/platform/s5p-tv/hdmi_drv.c @@ -656,7 +656,7 @@ static int hdmi_g_mbus_fmt(struct v4l2_subdev *sd, dev_dbg(hdev->dev, "%s\n", __func__); if (!hdev->cur_conf) return -EINVAL; - memset(fmt, 0, sizeof *fmt); + memset(fmt, 0, sizeof(*fmt)); fmt->width = t->hact.end - t->hact.beg; fmt->height = t->vact[0].end - t->vact[0].beg; fmt->code = V4L2_MBUS_FMT_FIXED; /* means RGB888 */ @@ -760,7 +760,7 @@ static void hdmi_resources_cleanup(struct hdmi_device *hdev) 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)); } static int hdmi_resources_init(struct hdmi_device *hdev) @@ -777,7 +777,7 @@ static int hdmi_resources_init(struct hdmi_device *hdev) dev_dbg(dev, "HDMI resource init\n"); - memset(res, 0, sizeof *res); + memset(res, 0, sizeof(*res)); /* get clocks, power */ res->hdmi = clk_get(dev, "hdmi"); @@ -955,7 +955,7 @@ static int __devinit hdmi_probe(struct platform_device *pdev) v4l2_subdev_init(sd, &hdmi_sd_ops); sd->owner = THIS_MODULE; - strlcpy(sd->name, "s5p-hdmi", sizeof sd->name); + strlcpy(sd->name, "s5p-hdmi", sizeof(sd->name)); hdmi_dev->cur_preset = HDMI_DEFAULT_PRESET; /* FIXME: missing fail preset is not supported */ hdmi_dev->cur_conf = hdmi_preset2timings(hdmi_dev->cur_preset);