rtc-rx8025.c (4b33d36b670e7166e8a082e050bfb241ba65271f) | rtc-rx8025.c (5c66e1e0b79bd63dcdfbc03b80823522643a1f14) |
---|---|
1/* 2 * Driver for Epson's RTC module RX-8025 SA/NB 3 * 4 * Copyright (C) 2009 Wolfgang Grandegger <wg@grandegger.com> 5 * 6 * Copyright (C) 2005 by Digi International Inc. 7 * All rights reserved. 8 * --- 256 unchanged lines hidden (view full) --- 265 "you may have to readjust the clock\n"); 266 } 267 268 if (ctrl[1] & (RX8025_BIT_CTRL2_DAFG | RX8025_BIT_CTRL2_WAFG)) { 269 dev_warn(&client->dev, "Alarm was detected\n"); 270 need_clear = 1; 271 } 272 | 1/* 2 * Driver for Epson's RTC module RX-8025 SA/NB 3 * 4 * Copyright (C) 2009 Wolfgang Grandegger <wg@grandegger.com> 5 * 6 * Copyright (C) 2005 by Digi International Inc. 7 * All rights reserved. 8 * --- 256 unchanged lines hidden (view full) --- 265 "you may have to readjust the clock\n"); 266 } 267 268 if (ctrl[1] & (RX8025_BIT_CTRL2_DAFG | RX8025_BIT_CTRL2_WAFG)) { 269 dev_warn(&client->dev, "Alarm was detected\n"); 270 need_clear = 1; 271 } 272 |
273 if (!(ctrl[1] & RX8025_BIT_CTRL2_CTFG)) | 273 if (ctrl[1] & RX8025_BIT_CTRL2_CTFG) |
274 need_clear = 1; 275 276 if (need_clear) { 277 ctrl2 = ctrl[1]; 278 ctrl2 &= ~(RX8025_BIT_CTRL2_CTFG | RX8025_BIT_CTRL2_WAFG | 279 RX8025_BIT_CTRL2_DAFG); 280 281 err = rx8025_write_reg(client, RX8025_REG_CTRL2, ctrl2); --- 294 unchanged lines hidden --- | 274 need_clear = 1; 275 276 if (need_clear) { 277 ctrl2 = ctrl[1]; 278 ctrl2 &= ~(RX8025_BIT_CTRL2_CTFG | RX8025_BIT_CTRL2_WAFG | 279 RX8025_BIT_CTRL2_DAFG); 280 281 err = rx8025_write_reg(client, RX8025_REG_CTRL2, ctrl2); --- 294 unchanged lines hidden --- |