From patchwork Mon Oct 14 15:25:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raghavendra Ganiga X-Patchwork-Id: 283276 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 0EA862C0343 for ; Tue, 15 Oct 2013 02:25:53 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756849Ab3JNPZZ (ORCPT ); Mon, 14 Oct 2013 11:25:25 -0400 Received: from mail-pb0-f53.google.com ([209.85.160.53]:45302 "EHLO mail-pb0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755714Ab3JNPZW (ORCPT ); Mon, 14 Oct 2013 11:25:22 -0400 Received: by mail-pb0-f53.google.com with SMTP id up15so7461402pbc.12 for ; Mon, 14 Oct 2013 08:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; bh=sIWwway0ccZ9zIiwSM9MVBXYSZJbJcnvg6XUJpqY2yA=; b=TgXS0DCzuyreuUiNrm5PT+vmdrIB26dZDq7YZeW5Llpo891Cj1OKEXMybD7qwEj7wx S08QlOLn6UUkUOt+ovQN8gk9+hb4gdGEX3b5G6vh7YruZA8M/PhZ6xwgt+jJPFFhDFP6 4cNnj5pWIyWuEuSf/P8WhbN/7euqWvwhVZEU1x4mc74xD02qbMT6EkMMB7PjzSJcwlCW OcuChQsXGkTCosWY14/BSusbh9gifmnqYNtGWixA+BVigwWHh2i66tsbZaWwF/d0CJFC SJxJstVnXld9U6B1uUlSTpK/cBxx7gg6JR8XnQQbNPQ26gC5e/8riB2YpzQMXak3yrZI 4S7g== X-Received: by 10.69.12.36 with SMTP id en4mr36621995pbd.54.1381764322136; Mon, 14 Oct 2013 08:25:22 -0700 (PDT) Received: from [192.168.0.100] ([123.201.144.19]) by mx.google.com with ESMTPSA id bn4sm32493118pbc.11.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Oct 2013 08:25:21 -0700 (PDT) Message-ID: <525C0CDB.6020305@gmail.com> Date: Mon, 14 Oct 2013 20:55:15 +0530 From: RAGHAVENDRA GANIGA User-Agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: wsa@the-dreams.de CC: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, ravi23ganiga@gmail.com Subject: [PATCH 3/3] i2c: i2c-core: fix coding style issues in i2c-core.c Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org From 2c324e677fd8bfb0ad13a8c949317e40cc5fd23e Mon Sep 17 00:00:00 2001 From: Raghavendra Ganiga Date: Mon, 14 Oct 2013 20:42:37 +0530 Subject: [PATCH 3/3] i2c: i2c-core: fix coding style issues in i2c-core.c This is a patch to the i2c-core.c file that fixes the coding style issues found by checkpatch.pl tool Signed-off-by: Raghavendra Chandra Ganiga --- drivers/i2c/i2c-core.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 66e38a9..7e95fcd 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c @@ -1737,9 +1737,9 @@ int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) for (ret = 0; ret < num; ret++) { dev_dbg(&adap->dev, "master_xfer[%d] %c, addr=0x%02x, len=%d%s\n", ret, - ((msgs[ret].flags & I2C_M_RD) ? 'R' : 'W'), + msgs[ret].flags & I2C_M_RD ? 'R' : 'W', msgs[ret].addr, msgs[ret].len, - (msgs[ret].flags & I2C_M_RECV_LEN) ? "+" : ""); + msgs[ret].flags & I2C_M_RECV_LEN ? "+" : ""); } #endif @@ -2120,7 +2120,8 @@ EXPORT_SYMBOL(i2c_smbus_read_byte); s32 i2c_smbus_write_byte(const struct i2c_client *client, u8 value) { return i2c_smbus_xfer(client->adapter, client->addr, client->flags, - I2C_SMBUS_WRITE, value, I2C_SMBUS_BYTE, NULL); + I2C_SMBUS_WRITE, value, + I2C_SMBUS_BYTE, NULL); } EXPORT_SYMBOL(i2c_smbus_write_byte);