From patchwork Fri May 3 06:21:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 241199 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-qe0-f56.google.com (mail-qe0-f56.google.com [209.85.128.56]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 779A02C00AF for ; Fri, 3 May 2013 16:35:22 +1000 (EST) Received: by mail-qe0-f56.google.com with SMTP id s14sf366227qeb.11 for ; Thu, 02 May 2013 23:35:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-google-group-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=eSwGgseLbJ/ZgkP3A6b5IvhsKMbO6PkpuACIwbQgLAw=; b=LNpQ+L0O4eeeskMET4pbBhy+c4TT6pWYa2cyDoIvM24PCNuIWoU31KQ0XNS4S3jCbM 46mRvq79MMlvKf1tHkCCbtWeovxRNYPLJ24kV0UHcpily0dUgVAcw3q3JxZT6/sQWir9 yEqm6cm7GY3G6XvfHNI8Y6qj7T25a5noX3SfLEULj3bhXbqiphpa/USS6Q/Abu/YP4nl tO8BLNCFDBSKDXmqbOWFnFOJcA3ShAjeXmBbGZFHzm5T3LcbjCHVRTzMgdQNP5/xxmjv Q14tsbKmVO8HawiVkYd2Y0D+qNvhTUevvr/TYZ/J50viU4u+LpSRDM4KYyXeS8UJ5VxU vr3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=eSwGgseLbJ/ZgkP3A6b5IvhsKMbO6PkpuACIwbQgLAw=; b=UtSgbPwPfztHqewmAL2GHCQqbns4nDsA9ZAA8gfB1zHKx9ukVdwUyfbHwRqgT0Q3dA tL7dMVlUbKSj5dFqGK6CJ1Npfw3mliQkz4rze1NKE8IbP+FmLFqRWqMH2z4fllYj2RRu gu7sSIW+fWTsz+EQ74jQdjGx9bIiudkjBnsXj1OZGMWNxQkHBOvmzXXCYrge5gXVBlaJ /Cf2Ea8U6NqMJSMiUk/i3s9DoSo/Ch7TVVzyZ1oYOKjr1E2rvEONExJvXJQH3o24dmDu 3fM7a/sgz2SKLEbXD23+TM3O6LR0SUez7GOPnwh8YrIkkdJuud6gh63gcOEFDlKlp8II wrcA== X-Received: by 10.50.128.105 with SMTP id nn9mr1400621igb.17.1367562919688; Thu, 02 May 2013 23:35:19 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.7.38 with SMTP id g6ls244834iga.26.canary; Thu, 02 May 2013 23:35:19 -0700 (PDT) X-Received: by 10.68.198.5 with SMTP id iy5mr3872069pbc.3.1367562919425; Thu, 02 May 2013 23:35:19 -0700 (PDT) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by gmr-mx.google.com with ESMTPS id gk5si1704215pbc.0.2013.05.02.23.35.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 May 2013 23:35:19 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.171 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.192.171; Received: by mail-pd0-f171.google.com with SMTP id r11so760689pdi.2 for ; Thu, 02 May 2013 23:35:19 -0700 (PDT) X-Received: by 10.67.5.168 with SMTP id cn8mr13481774pad.119.1367562919344; Thu, 02 May 2013 23:35:19 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id kr7sm11485494pab.23.2013.05.02.23.35.16 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 May 2013 23:35:18 -0700 (PDT) From: Sachin Kamat To: rtc-linux@googlegroups.com Cc: a.zummo@towertech.it, akpm@linux-foundation.org, sachin.kamat@linaro.org Subject: [rtc-linux] [PATCH 23/26] drivers/rtc/rtc-rs5c313.c: Fix spacing related issues Date: Fri, 3 May 2013 11:51:13 +0530 Message-Id: <1367562076-25713-24-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1367562076-25713-1-git-send-email-sachin.kamat@linaro.org> References: <1367562076-25713-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQlGYNyYGW8C4AaqjBTTazqM6BygK7Ze0xM9GSPQNbxjVXsUFcMqx/V1sXkIeiLnQ64h/5yB X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.192.171 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , Fixes the following types of checkpatch issues: WARNING: please, no space before tabs ERROR: space prohibited after that open parenthesis '(' ERROR: space prohibited before that close parenthesis ')' ERROR: need consistent spacing around '>>' (ctx:VxW) Signed-off-by: Sachin Kamat --- drivers/rtc/rtc-rs5c313.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/rtc/rtc-rs5c313.c b/drivers/rtc/rtc-rs5c313.c index b603cc4..6af0f1f 100644 --- a/drivers/rtc/rtc-rs5c313.c +++ b/drivers/rtc/rtc-rs5c313.c @@ -50,7 +50,7 @@ #include #define DRV_NAME "rs5c313" -#define DRV_VERSION "1.13" +#define DRV_VERSION "1.13" #ifdef CONFIG_SH_LANDISK /*****************************************************/ @@ -301,7 +301,7 @@ static int rs5c313_rtc_set_time(struct device *dev, struct rtc_time *tm) rs5c313_write_reg(RS5C313_ADDR_SEC10, (data >> 4)); data = bin2bcd(tm->tm_min); - rs5c313_write_reg(RS5C313_ADDR_MIN, data ); + rs5c313_write_reg(RS5C313_ADDR_MIN, data); rs5c313_write_reg(RS5C313_ADDR_MIN10, (data >> 4)); data = bin2bcd(tm->tm_hour); @@ -310,7 +310,7 @@ static int rs5c313_rtc_set_time(struct device *dev, struct rtc_time *tm) data = bin2bcd(tm->tm_mday); rs5c313_write_reg(RS5C313_ADDR_DAY, data); - rs5c313_write_reg(RS5C313_ADDR_DAY10, (data>> 4)); + rs5c313_write_reg(RS5C313_ADDR_DAY10, (data >> 4)); data = bin2bcd(tm->tm_mon + 1); rs5c313_write_reg(RS5C313_ADDR_MON, data); @@ -349,9 +349,9 @@ static void rs5c313_check_xstp_bit(void) } memset(&tm, 0, sizeof(struct rtc_time)); - tm.tm_mday = 1; - tm.tm_mon = 1 - 1; - tm.tm_year = 2000 - 1900; + tm.tm_mday = 1; + tm.tm_mon = 1 - 1; + tm.tm_year = 2000 - 1900; rs5c313_rtc_set_time(NULL, &tm); pr_err("invalid value, resetting to 1 Jan 2000\n"); @@ -388,7 +388,7 @@ static struct platform_driver rs5c313_rtc_platform_driver = { .name = DRV_NAME, .owner = THIS_MODULE, }, - .probe = rs5c313_rtc_probe, + .probe = rs5c313_rtc_probe, .remove = rs5c313_rtc_remove, }; @@ -408,7 +408,7 @@ static int __init rs5c313_rtc_init(void) static void __exit rs5c313_rtc_exit(void) { - platform_driver_unregister( &rs5c313_rtc_platform_driver ); + platform_driver_unregister(&rs5c313_rtc_platform_driver); } module_init(rs5c313_rtc_init);