| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Driver for Nuvoton Technology Corporation w83667hg/w83677hg-i CIR |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 8 | 9 | * sample code upon which portions of this driver are based. Indirect |
|---|
| 9 | 10 | * thanks also to Maxim Levitsky, whose ene_ir driver this driver is |
|---|
| 10 | 11 | * 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. |
|---|
| 21 | 12 | */ |
|---|
| 22 | 13 | |
|---|
| 23 | 14 | #include <linux/spinlock.h> |
|---|
| .. | .. |
|---|
| 103 | 94 | #define CIR_IOREG_LENGTH 0x0f |
|---|
| 104 | 95 | |
|---|
| 105 | 96 | /* 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) |
|---|
| 107 | 98 | |
|---|
| 108 | 99 | /* CIR Regs */ |
|---|
| 109 | 100 | #define CIR_IRCON 0x00 |
|---|