hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/input/misc/ati_remote2.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * ati_remote2 - ATI/Philips USB RF remote driver
34 *
45 * Copyright (C) 2005-2008 Ville Syrjala <syrjala@sci.fi>
56 * Copyright (C) 2007-2008 Peter Stokes <linux@dadeos.co.uk>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2
9
- * as published by the Free Software Foundation.
107 */
118
129 #include <linux/usb/input.h>
....@@ -71,7 +68,7 @@
7168 {
7269 pr_debug("%s()\n", __func__);
7370
74
- return sprintf(buffer, "0x%04x", *(unsigned int *)kp->arg);
71
+ return sprintf(buffer, "0x%04x\n", *(unsigned int *)kp->arg);
7572 }
7673
7774 static int ati_remote2_set_mode_mask(const char *val,
....@@ -87,7 +84,7 @@
8784 {
8885 pr_debug("%s()\n", __func__);
8986
90
- return sprintf(buffer, "0x%02x", *(unsigned int *)kp->arg);
87
+ return sprintf(buffer, "0x%02x\n", *(unsigned int *)kp->arg);
9188 }
9289
9390 static unsigned int channel_mask = ATI_REMOTE2_MAX_CHANNEL_MASK;