.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Allwinner sunxi resistive touchscreen controller driver |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * |
---|
6 | 7 | * The hwmon parts are based on work by Corentin LABBE which is: |
---|
7 | 8 | * Copyright (C) 2013 Corentin LABBE <clabbe.montjoie@gmail.com> |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify |
---|
10 | | - * it under the terms of the GNU General Public License as published by |
---|
11 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
12 | | - * (at your option) any later version. |
---|
13 | | - * |
---|
14 | | - * This program is distributed in the hope that it will be useful, |
---|
15 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
17 | | - * GNU General Public License for more details. |
---|
18 | 9 | */ |
---|
19 | 10 | |
---|
20 | 11 | /* |
---|
.. | .. |
---|
31 | 22 | * in the kernel). So this driver offers straight forward, reliable single |
---|
32 | 23 | * touch functionality only. |
---|
33 | 24 | * |
---|
34 | | - * s.a. A20 User Manual "1.15 TP" (Documentation/arm/sunxi/README) |
---|
| 25 | + * s.a. A20 User Manual "1.15 TP" (Documentation/arm/sunxi.rst) |
---|
35 | 26 | * (looks like the description in the A20 User Manual v1.3 is better |
---|
36 | 27 | * than the one in the A10 User Manual v.1.5) |
---|
37 | 28 | */ |
---|
.. | .. |
---|
310 | 301 | input_set_drvdata(ts->input, ts); |
---|
311 | 302 | } |
---|
312 | 303 | |
---|
313 | | - ts->base = devm_ioremap_resource(dev, |
---|
314 | | - platform_get_resource(pdev, IORESOURCE_MEM, 0)); |
---|
| 304 | + ts->base = devm_platform_ioremap_resource(pdev, 0); |
---|
315 | 305 | if (IS_ERR(ts->base)) |
---|
316 | 306 | return PTR_ERR(ts->base); |
---|
317 | 307 | |
---|