hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/rc/nuvoton-cir.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Driver for Nuvoton Technology Corporation w83667hg/w83677hg-i CIR
34 *
....@@ -8,16 +9,6 @@
89 * sample code upon which portions of this driver are based. Indirect
910 * thanks also to Maxim Levitsky, whose ene_ir driver this driver is
1011 * modeled after.
11
- *
12
- * This program is free software; you can redistribute it and/or
13
- * modify it under the terms of the GNU General Public License as
14
- * published by the Free Software Foundation; either version 2 of the
15
- * License, or (at your option) any later version.
16
- *
17
- * This program is distributed in the hope that it will be useful, but
18
- * WITHOUT ANY WARRANTY; without even the implied warranty of
19
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20
- * General Public License for more details.
2112 */
2213
2314 #include <linux/spinlock.h>
....@@ -103,7 +94,7 @@
10394 #define CIR_IOREG_LENGTH 0x0f
10495
10596 /* RX limit length, 8 high bits for SLCH, 8 low bits for SLCL */
106
-#define CIR_RX_LIMIT_COUNT (IR_DEFAULT_TIMEOUT / US_TO_NS(SAMPLE_PERIOD))
97
+#define CIR_RX_LIMIT_COUNT (IR_DEFAULT_TIMEOUT / SAMPLE_PERIOD)
10798
10899 /* CIR Regs */
109100 #define CIR_IRCON 0x00