From patchwork Sat Jul 27 17:48:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "santosh.anbu" X-Patchwork-Id: 2834818 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A2A2BC0319 for ; Mon, 29 Jul 2013 06:36:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CFE6F20151 for ; Mon, 29 Jul 2013 06:36:15 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id DCAC920125 for ; Mon, 29 Jul 2013 06:36:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D9B4FE67F8 for ; Sun, 28 Jul 2013 23:36:14 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pb0-f45.google.com (mail-pb0-f45.google.com [209.85.160.45]) by gabe.freedesktop.org (Postfix) with ESMTP id B919AE615B for ; Sat, 27 Jul 2013 10:46:51 -0700 (PDT) Received: by mail-pb0-f45.google.com with SMTP id mc8so3155579pbc.4 for ; Sat, 27 Jul 2013 10:46:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=yzA6yoPlUVFSzntGJykWrcCZWfA8NM2GuzKOW90Leh8=; b=D8D3pRFWebJ73eK7p5QWyvDZN7jLEO7Zk4fyAynTCTrZRQoQxXvN7A88Ew57euG6tD zGugZXmyNAitD52l4QQR0FGgRUYibrtJ6yb0udKlrvGUEkXTeNVedD2cV5q9g+akm+x5 1IHMFlw3ApqBTeHNeFH6AhOuHlh2HVMYuM0t/Di3YM/0FdlGG40dR3hF7UEgkPF3BQf8 64oLNaUY2zIrTV3kUsdHQix190KGzo5VX0hpZ0QOQ6YHDd+xLSfFtlvSCqomAne2clX9 mc+b41YK9sZJGW4hHo/R9yxYRGsRHYMrNXYriI3j5q2WykzDTRB12wIQxuPqZ8YhDAJq arqw== X-Received: by 10.68.97.229 with SMTP id ed5mr59892411pbb.37.1374947211392; Sat, 27 Jul 2013 10:46:51 -0700 (PDT) Received: from localhost.localdomain ([106.51.81.215]) by mx.google.com with ESMTPSA id ep4sm67028345pbd.35.2013.07.27.10.46.48 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 27 Jul 2013 10:46:50 -0700 (PDT) From: "santosh.anbu" To: airlied@linux.ie Subject: [PATCH 2/2] i2c.c: Fixed coding style issue for if statement Date: Sat, 27 Jul 2013 23:18:36 +0530 Message-Id: <1374947316-7864-1-git-send-email-asantosh.king@gmail.com> X-Mailer: git-send-email 1.8.1.2 X-Mailman-Approved-At: Sun, 28 Jul 2013 22:48:26 -0700 Cc: dri-devel@lists.freedesktop.org, asantosh.king@gmail.com, linux-kernel@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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: "santosh.anbu" Fixed coding style issue Signed-off-by: santosh.anbu --- drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c b/drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c index cfb9288..e88529c 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c +++ b/drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c @@ -114,15 +114,19 @@ dcb_i2c_parse(struct nouveau_bios *bios, u8 idx, struct dcb_i2c_entry *info) if (idx == 0) { info->drive = nv_ro08(bios, ent + 4); - if (!info->drive) info->drive = 0x3f; + if (!info->drive) + info->drive = 0x3f; info->sense = nv_ro08(bios, ent + 5); - if (!info->sense) info->sense = 0x3e; + if (!info->sense) + info->sense = 0x3e; } else if (idx == 1) { info->drive = nv_ro08(bios, ent + 6); - if (!info->drive) info->drive = 0x37; + if (!info->drive) + info->drive = 0x37; info->sense = nv_ro08(bios, ent + 7); - if (!info->sense) info->sense = 0x36; + if (!info->sense) + info->sense = 0x36; } info->type = DCB_I2C_NV04_BIT;