hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/input/touchscreen/sun4i-ts.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Allwinner sunxi resistive touchscreen controller driver
34 *
....@@ -5,16 +6,6 @@
56 *
67 * The hwmon parts are based on work by Corentin LABBE which is:
78 * 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.
189 */
1910
2011 /*
....@@ -31,7 +22,7 @@
3122 * in the kernel). So this driver offers straight forward, reliable single
3223 * touch functionality only.
3324 *
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)
3526 * (looks like the description in the A20 User Manual v1.3 is better
3627 * than the one in the A10 User Manual v.1.5)
3728 */
....@@ -310,8 +301,7 @@
310301 input_set_drvdata(ts->input, ts);
311302 }
312303
313
- ts->base = devm_ioremap_resource(dev,
314
- platform_get_resource(pdev, IORESOURCE_MEM, 0));
304
+ ts->base = devm_platform_ioremap_resource(pdev, 0);
315305 if (IS_ERR(ts->base))
316306 return PTR_ERR(ts->base);
317307