Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: input: rtc: mc13783: Remove deprecated mc13xxx_irq_ack()

mc13xxx_irq_ack() got deprecated and became dead code with commit
10f9edaeaa30 ("mfd: mc13xxx: Use regmap irq framework for interrupts").
It should be safe to remove it now.

Signed-off-by: Alexander Kurz <akurz@blala.de>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> # for input
Link: https://lore.kernel.org/r/20250811064358.1659-1-akurz@blala.de
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Alexander Kurz and committed by
Lee Jones
f0addd32 8f5ae30d

-24
-1
drivers/input/misc/mc13783-pwrbutton.c
··· 57 57 struct mc13783_pwrb *priv = _priv; 58 58 int val; 59 59 60 - mc13xxx_irq_ack(priv->mc13783, irq); 61 60 mc13xxx_reg_read(priv->mc13783, MC13783_REG_INTERRUPT_SENSE_1, &val); 62 61 63 62 switch (irq) {
-4
drivers/input/touchscreen/mc13783_ts.c
··· 42 42 { 43 43 struct mc13783_ts_priv *priv = data; 44 44 45 - mc13xxx_irq_ack(priv->mc13xxx, irq); 46 - 47 45 /* 48 46 * Kick off reading coordinates. Note that if work happens already 49 47 * be queued for future execution (it rearms itself) it will not ··· 134 136 int ret; 135 137 136 138 mc13xxx_lock(priv->mc13xxx); 137 - 138 - mc13xxx_irq_ack(priv->mc13xxx, MC13XXX_IRQ_TS); 139 139 140 140 ret = mc13xxx_irq_request(priv->mc13xxx, MC13XXX_IRQ_TS, 141 141 mc13783_ts_handler, MC13783_TS_NAME, priv);
-13
drivers/rtc/rtc-mc13xxx.c
··· 137 137 } 138 138 139 139 if (!priv->valid) { 140 - ret = mc13xxx_irq_ack(priv->mc13xxx, MC13XXX_IRQ_RTCRST); 141 - if (unlikely(ret)) 142 - goto out; 143 - 144 140 ret = mc13xxx_irq_unmask(priv->mc13xxx, MC13XXX_IRQ_RTCRST); 145 141 } 146 142 ··· 204 208 if (unlikely(ret)) 205 209 goto out; 206 210 207 - ret = mc13xxx_irq_ack(priv->mc13xxx, MC13XXX_IRQ_TODA); 208 - if (unlikely(ret)) 209 - goto out; 210 - 211 211 s1970 = rtc_tm_to_time64(&alarm->time); 212 212 213 213 dev_dbg(dev, "%s: %s %lld\n", __func__, alarm->enabled ? "on" : "off", ··· 231 239 static irqreturn_t mc13xxx_rtc_alarm_handler(int irq, void *dev) 232 240 { 233 241 struct mc13xxx_rtc *priv = dev; 234 - struct mc13xxx *mc13xxx = priv->mc13xxx; 235 242 236 243 rtc_update_irq(priv->rtc, 1, RTC_IRQF | RTC_AF); 237 - 238 - mc13xxx_irq_ack(mc13xxx, irq); 239 244 240 245 return IRQ_HANDLED; 241 246 } ··· 281 292 priv->rtc->range_max = (timeu64_t)(1 << 15) * SEC_PER_DAY - 1; 282 293 283 294 mc13xxx_lock(mc13xxx); 284 - 285 - mc13xxx_irq_ack(mc13xxx, MC13XXX_IRQ_RTCRST); 286 295 287 296 ret = mc13xxx_irq_request(mc13xxx, MC13XXX_IRQ_RTCRST, 288 297 mc13xxx_rtc_reset_handler, DRIVER_NAME, priv);
-6
include/linux/mfd/mc13xxx.h
··· 31 31 unsigned int mode, unsigned int channel, 32 32 u8 ato, bool atox, unsigned int *sample); 33 33 34 - /* Deprecated calls */ 35 - static inline int mc13xxx_irq_ack(struct mc13xxx *mc13xxx, int irq) 36 - { 37 - return 0; 38 - } 39 - 40 34 static inline int mc13xxx_irq_request_nounmask(struct mc13xxx *mc13xxx, int irq, 41 35 irq_handler_t handler, 42 36 const char *name, void *dev)