summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2026-02-20 19:02:45 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2026-02-28 18:20:48 -0800
commit9df4a9d2129f779449c0cbc1bd9ce37451d8b4f3 (patch)
tree42901031ce438f4766ae320ef6b725c09804fb1d /drivers/input
parent1fe01b817921d2bbb10cc9c83d36364738ecfe5d (diff)
Input: atkbd - use dev_warn_ratelimited()
Instead of explicitly using printk_ratelimit() switch to using dev_warn_ratelimited(). Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/keyboard/atkbd.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
index 4459de0e6615..2d80a06e4b07 100644
--- a/drivers/input/keyboard/atkbd.c
+++ b/drivers/input/keyboard/atkbd.c
@@ -486,11 +486,9 @@ static void atkbd_receive_byte(struct ps2dev *ps2dev, u8 data)
return;
case ATKBD_RET_ACK:
case ATKBD_RET_NAK:
- if (printk_ratelimit())
- dev_warn(&serio->dev,
- "Spurious %s on %s. "
- "Some program might be trying to access hardware directly.\n",
- data == ATKBD_RET_ACK ? "ACK" : "NAK", serio->phys);
+ dev_warn_ratelimited(&serio->dev,
+ "Spurious %s on %s. Some program might be trying to access hardware directly.\n",
+ data == ATKBD_RET_ACK ? "ACK" : "NAK", serio->phys);
return;
case ATKBD_RET_ERR:
atkbd->err_count++;