diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2018-12-04 16:23:15 -0500 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-12-10 16:39:47 -0500 |
commit | 22b844ae3318fa4bc097cf24d30b6512f198ebae (patch) | |
tree | 59c866accbbd17ba4c76b11b24640e644738d71a | |
parent | 285166cb8c77a01c510f05003cb38efcd2a66740 (diff) |
rtc: m41t80: Switch to use %ptR
Use %ptR instead of open coded variant to print content of
struct rtc_time in human readable format.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
-rw-r--r-- | drivers/rtc/rtc-m41t80.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c index a39138932379..ebf50b1540f2 100644 --- a/drivers/rtc/rtc-m41t80.c +++ b/drivers/rtc/rtc-m41t80.c | |||
@@ -942,11 +942,7 @@ static int m41t80_probe(struct i2c_client *client, | |||
942 | if (m41t80_data->features & M41T80_FEATURE_HT) { | 942 | if (m41t80_data->features & M41T80_FEATURE_HT) { |
943 | m41t80_rtc_read_time(&client->dev, &tm); | 943 | m41t80_rtc_read_time(&client->dev, &tm); |
944 | dev_info(&client->dev, "HT bit was set!\n"); | 944 | dev_info(&client->dev, "HT bit was set!\n"); |
945 | dev_info(&client->dev, | 945 | dev_info(&client->dev, "Power Down at %ptR\n", &tm); |
946 | "Power Down at %04i-%02i-%02i %02i:%02i:%02i\n", | ||
947 | tm.tm_year + 1900, | ||
948 | tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, | ||
949 | tm.tm_min, tm.tm_sec); | ||
950 | } | 946 | } |
951 | rc = i2c_smbus_write_byte_data(client, M41T80_REG_ALARM_HOUR, | 947 | rc = i2c_smbus_write_byte_data(client, M41T80_REG_ALARM_HOUR, |
952 | rc & ~M41T80_ALHOUR_HT); | 948 | rc & ~M41T80_ALHOUR_HT); |