aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/gpio-button-hotplug
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2020-03-03 12:13:29 +0100
committerPetr Štetiar <ynezz@true.cz>2020-03-08 15:10:55 +0100
commitd1c2b25212fdfdf50bafb16cb8aa6197f780408c (patch)
treefaec7237ac4f2bff72a50612e0e42cb9cb92427f /package/kernel/gpio-button-hotplug
parentaae4d85647f27ca64d2012501636e41d5a8ab42a (diff)
downloadupstream-d1c2b25212fdfdf50bafb16cb8aa6197f780408c.tar.gz
upstream-d1c2b25212fdfdf50bafb16cb8aa6197f780408c.tar.bz2
upstream-d1c2b25212fdfdf50bafb16cb8aa6197f780408c.zip
gpio-button-hotplug: remove duplicate logging text
Removes one of the duplicate `gpio-keys` words found in the logs: gpio-keys gpio-keys: gpio-keysdoes not support key code:143 Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'package/kernel/gpio-button-hotplug')
-rw-r--r--package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c
index 3e8e0ea268..9575c6245b 100644
--- a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c
+++ b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c
@@ -517,20 +517,20 @@ static int gpio_keys_button_probe(struct platform_device *pdev,
unsigned int gpio = button->gpio;
if (button->wakeup) {
- dev_err(dev, DRV_NAME "does not support wakeup\n");
+ dev_err(dev, "does not support wakeup\n");
return -EINVAL;
}
bdata->map_entry = button_get_index(button->code);
if (bdata->map_entry < 0) {
- dev_warn(dev, DRV_NAME "does not support key code:%u\n",
+ dev_warn(dev, "does not support key code:%u\n",
button->code);
continue;
}
if (!(button->type == 0 || button->type == EV_KEY ||
button->type == EV_SW)) {
- dev_warn(dev, DRV_NAME "only supports buttons or switches\n");
+ dev_warn(dev, "only supports buttons or switches\n");
continue;
}