diff options
author | Thomas Bogendoerfer <tbogendoerfer@suse.de> | 2019-04-16 05:34:03 -0400 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-04-16 12:03:46 -0400 |
commit | e330c3d547e8ab722dca23f3dc26c3eba5590e55 (patch) | |
tree | aeaab79049f69eda6e04e818cdb1870e67850960 | |
parent | 692802d26b3ae3578fe77ada89b58217fe1c3d75 (diff) |
rtc: ds1685: remove dead code
ds1685_rtc_begin_ctrl_access/ds1685_rtc_end_ctrl_access aren't used,
so get rid of it.
Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
-rw-r--r-- | drivers/rtc/rtc-ds1685.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/drivers/rtc/rtc-ds1685.c b/drivers/rtc/rtc-ds1685.c index 2f5194df239e..33781be58f16 100644 --- a/drivers/rtc/rtc-ds1685.c +++ b/drivers/rtc/rtc-ds1685.c | |||
@@ -192,42 +192,6 @@ ds1685_rtc_end_data_access(struct ds1685_priv *rtc) | |||
192 | } | 192 | } |
193 | 193 | ||
194 | /** | 194 | /** |
195 | * ds1685_rtc_begin_ctrl_access - prepare the rtc for ctrl access. | ||
196 | * @rtc: pointer to the ds1685 rtc structure. | ||
197 | * @flags: irq flags variable for spin_lock_irqsave. | ||
198 | * | ||
199 | * This takes several steps to prepare the rtc for access to read just the | ||
200 | * control registers: | ||
201 | * - Sets a spinlock on the rtc IRQ. | ||
202 | * - Switches the rtc to bank 1. This allows access to the two extended | ||
203 | * control registers. | ||
204 | * | ||
205 | * Only use this where you are certain another lock will not be held. | ||
206 | */ | ||
207 | static inline void | ||
208 | ds1685_rtc_begin_ctrl_access(struct ds1685_priv *rtc, unsigned long *flags) | ||
209 | { | ||
210 | spin_lock_irqsave(&rtc->lock, *flags); | ||
211 | ds1685_rtc_switch_to_bank1(rtc); | ||
212 | } | ||
213 | |||
214 | /** | ||
215 | * ds1685_rtc_end_ctrl_access - end ctrl access on the rtc. | ||
216 | * @rtc: pointer to the ds1685 rtc structure. | ||
217 | * @flags: irq flags variable for spin_unlock_irqrestore. | ||
218 | * | ||
219 | * This ends what was started by ds1685_rtc_begin_ctrl_access: | ||
220 | * - Switches the rtc back to bank 0. | ||
221 | * - Unsets the spinlock on the rtc IRQ. | ||
222 | */ | ||
223 | static inline void | ||
224 | ds1685_rtc_end_ctrl_access(struct ds1685_priv *rtc, unsigned long flags) | ||
225 | { | ||
226 | ds1685_rtc_switch_to_bank0(rtc); | ||
227 | spin_unlock_irqrestore(&rtc->lock, flags); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * ds1685_rtc_get_ssn - retrieve the silicon serial number. | 195 | * ds1685_rtc_get_ssn - retrieve the silicon serial number. |
232 | * @rtc: pointer to the ds1685 rtc structure. | 196 | * @rtc: pointer to the ds1685 rtc structure. |
233 | * @ssn: u8 array to hold the bits of the silicon serial number. | 197 | * @ssn: u8 array to hold the bits of the silicon serial number. |