rtc-rx6110.c (0cce284537fb42d9c28b9b31038ffc9b464555f5) rtc-rx6110.c (22652ba72453d35c8a637d5c0f06b3dc29ff9eb0)
1/*
2 * Driver for the Epson RTC module RX-6110 SA
3 *
4 * Copyright(C) 2015 Pengutronix, Steffen Trumtrar <kernel@pengutronix.de>
5 * Copyright(C) SEIKO EPSON CORPORATION 2013. All rights reserved.
6 *
7 * This driver software is distributed as is, without any warranty of any kind,
8 * either express or implied as further specified in the GNU Public License.

--- 238 unchanged lines hidden (view full) ---

247 ret = rx6110_data_to_rtc_tm(data, tm);
248 if (ret)
249 return ret;
250
251 dev_dbg(dev, "%s: date %ds %dm %dh %dmd %dm %dy\n", __func__,
252 tm->tm_sec, tm->tm_min, tm->tm_hour,
253 tm->tm_mday, tm->tm_mon, tm->tm_year);
254
1/*
2 * Driver for the Epson RTC module RX-6110 SA
3 *
4 * Copyright(C) 2015 Pengutronix, Steffen Trumtrar <kernel@pengutronix.de>
5 * Copyright(C) SEIKO EPSON CORPORATION 2013. All rights reserved.
6 *
7 * This driver software is distributed as is, without any warranty of any kind,
8 * either express or implied as further specified in the GNU Public License.

--- 238 unchanged lines hidden (view full) ---

247 ret = rx6110_data_to_rtc_tm(data, tm);
248 if (ret)
249 return ret;
250
251 dev_dbg(dev, "%s: date %ds %dm %dh %dmd %dm %dy\n", __func__,
252 tm->tm_sec, tm->tm_min, tm->tm_hour,
253 tm->tm_mday, tm->tm_mon, tm->tm_year);
254
255 return rtc_valid_tm(tm);
255 return 0;
256}
257
258static const struct reg_sequence rx6110_default_regs[] = {
259 { RX6110_REG_RES1, 0xB8 },
260 { RX6110_REG_RES2, 0x00 },
261 { RX6110_REG_RES3, 0x10 },
262 { RX6110_REG_IRQ, 0x00 },
263 { RX6110_REG_ALMIN, 0x00 },

--- 138 unchanged lines hidden ---
256}
257
258static const struct reg_sequence rx6110_default_regs[] = {
259 { RX6110_REG_RES1, 0xB8 },
260 { RX6110_REG_RES2, 0x00 },
261 { RX6110_REG_RES3, 0x10 },
262 { RX6110_REG_IRQ, 0x00 },
263 { RX6110_REG_ALMIN, 0x00 },

--- 138 unchanged lines hidden ---