hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/pwm/pwm-atmel-hlcdc.c
....@@ -1,20 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2014 Free Electrons
34 * Copyright (C) 2014 Atmel
45 *
56 * Author: Boris BREZILLON <boris.brezillon@free-electrons.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify it
8
- * under the terms of the GNU General Public License version 2 as published by
9
- * the Free Software Foundation.
10
- *
11
- * This program is distributed in the hope that it will be useful, but WITHOUT
12
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14
- * more details.
15
- *
16
- * You should have received a copy of the GNU General Public License along with
17
- * this program. If not, see <http://www.gnu.org/licenses/>.
187 */
198
209 #include <linux/clk.h>
....@@ -50,7 +39,7 @@
5039 }
5140
5241 static int atmel_hlcdc_pwm_apply(struct pwm_chip *c, struct pwm_device *pwm,
53
- struct pwm_state *state)
42
+ const struct pwm_state *state)
5443 {
5544 struct atmel_hlcdc_pwm *chip = to_atmel_hlcdc_pwm(c);
5645 struct atmel_hlcdc *hlcdc = chip->hlcdc;
....@@ -246,6 +235,7 @@
246235 .compatible = "atmel,sama5d4-hlcdc",
247236 .data = &atmel_hlcdc_pwm_sama5d3_errata,
248237 },
238
+ { .compatible = "microchip,sam9x60-hlcdc", },
249239 { /* sentinel */ },
250240 };
251241 MODULE_DEVICE_TABLE(of, atmel_hlcdc_dt_ids);