rtc: rtc-hid-sensor-time: allow 16 and 32 bit values for all attributes.
[firefly-linux-kernel-4.4.55.git] / drivers / rtc / rtc-m41t80.c
index 89674b5e6efda050b1f1ef718682221e7ca10d79..a5248aa1abf143c852597ff12e4ecda0bcd9cd7e 100644 (file)
@@ -168,7 +168,7 @@ static int m41t80_set_datetime(struct i2c_client *client, struct rtc_time *tm)
        buf[M41T80_REG_MIN] =
                bin2bcd(tm->tm_min) | (buf[M41T80_REG_MIN] & ~0x7f);
        buf[M41T80_REG_HOUR] =
-               bin2bcd(tm->tm_hour) | (buf[M41T80_REG_HOUR] & ~0x3f) ;
+               bin2bcd(tm->tm_hour) | (buf[M41T80_REG_HOUR] & ~0x3f);
        buf[M41T80_REG_WDAY] =
                (tm->tm_wday & 0x07) | (buf[M41T80_REG_WDAY] & ~0x07);
        buf[M41T80_REG_DAY] =