.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2014 Free Electrons |
---|
3 | 4 | * Copyright (C) 2014 Atmel |
---|
4 | 5 | * |
---|
5 | 6 | * 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/>. |
---|
18 | 7 | */ |
---|
19 | 8 | |
---|
20 | 9 | #include <linux/clk.h> |
---|
.. | .. |
---|
50 | 39 | } |
---|
51 | 40 | |
---|
52 | 41 | 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) |
---|
54 | 43 | { |
---|
55 | 44 | struct atmel_hlcdc_pwm *chip = to_atmel_hlcdc_pwm(c); |
---|
56 | 45 | struct atmel_hlcdc *hlcdc = chip->hlcdc; |
---|
.. | .. |
---|
246 | 235 | .compatible = "atmel,sama5d4-hlcdc", |
---|
247 | 236 | .data = &atmel_hlcdc_pwm_sama5d3_errata, |
---|
248 | 237 | }, |
---|
| 238 | + { .compatible = "microchip,sam9x60-hlcdc", }, |
---|
249 | 239 | { /* sentinel */ }, |
---|
250 | 240 | }; |
---|
251 | 241 | MODULE_DEVICE_TABLE(of, atmel_hlcdc_dt_ids); |
---|