hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Sony ACX565AKM LCD Panel driver
34 *
....@@ -6,18 +7,6 @@
67 * Original Driver Author: Imre Deak <imre.deak@nokia.com>
78 * Based on panel-generic.c by Tomi Valkeinen <tomi.valkeinen@nokia.com>
89 * Adapted to new DSS2 framework: Roger Quadros <roger.quadros@nokia.com>
9
- *
10
- * This program is free software; you can redistribute it and/or modify it
11
- * under the terms of the GNU General Public License version 2 as published by
12
- * the Free Software Foundation.
13
- *
14
- * This program is distributed in the hope that it will be useful, but WITHOUT
15
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17
- * more details.
18
- *
19
- * You should have received a copy of the GNU General Public License along with
20
- * this program. If not, see <http://www.gnu.org/licenses/>.
2110 */
2211
2312 #include <linux/kernel.h>
....@@ -487,7 +476,7 @@
487476 int i;
488477
489478 if (!ddata->has_cabc)
490
- return snprintf(buf, PAGE_SIZE, "%s\n", cabc_modes[0]);
479
+ return sysfs_emit(buf, "%s\n", cabc_modes[0]);
491480
492481 for (i = 0, len = 0;
493482 len < PAGE_SIZE && i < ARRAY_SIZE(cabc_modes); i++)