]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/rtc/rtc-ds1374.c: fix spacing related issues
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 23 May 2013 00:37:34 +0000 (10:37 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 27 May 2013 06:09:13 +0000 (16:09 +1000)
Fixes the following types of issues:
ERROR: code indent should use tabs where possible
WARNING: please, no spaces at the start of a line

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-ds1374.c

index 94366e12f40fc0ccef7bce40f7dc9381fa72da98..9e6e14fb53d740bd4a8085fe617506245131443a 100644 (file)
@@ -65,7 +65,7 @@ struct ds1374 {
 static struct i2c_driver ds1374_driver;
 
 static int ds1374_read_rtc(struct i2c_client *client, u32 *time,
-                           int reg, int nbytes)
+                          int reg, int nbytes)
 {
        u8 buf[4];
        int ret;
@@ -90,7 +90,7 @@ static int ds1374_read_rtc(struct i2c_client *client, u32 *time,
 }
 
 static int ds1374_write_rtc(struct i2c_client *client, u32 time,
-                            int reg, int nbytes)
+                           int reg, int nbytes)
 {
        u8 buf[4];
        int i;
@@ -119,8 +119,7 @@ static int ds1374_check_rtc_status(struct i2c_client *client)
 
        if (stat & DS1374_REG_SR_OSF)
                dev_warn(&client->dev,
-                        "oscillator discontinuity flagged, "
-                        "time unreliable\n");
+                        "oscillator discontinuity flagged, time unreliable\n");
 
        stat &= ~(DS1374_REG_SR_OSF | DS1374_REG_SR_AF);
 
@@ -363,7 +362,7 @@ static int ds1374_probe(struct i2c_client *client,
 
        if (client->irq > 0) {
                ret = devm_request_irq(&client->dev, client->irq, ds1374_irq, 0,
-                                 "ds1374", client);
+                                       "ds1374", client);
                if (ret) {
                        dev_err(&client->dev, "unable to request IRQ\n");
                        return ret;
@@ -373,7 +372,7 @@ static int ds1374_probe(struct i2c_client *client,
        }
 
        ds1374->rtc = devm_rtc_device_register(&client->dev, client->name,
-                                         &ds1374_rtc_ops, THIS_MODULE);
+                                               &ds1374_rtc_ops, THIS_MODULE);
        if (IS_ERR(ds1374->rtc)) {
                dev_err(&client->dev, "unable to register the class device\n");
                return PTR_ERR(ds1374->rtc);