.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Sony ACX565AKM LCD Panel driver |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * Original Driver Author: Imre Deak <imre.deak@nokia.com> |
---|
7 | 8 | * Based on panel-generic.c by Tomi Valkeinen <tomi.valkeinen@nokia.com> |
---|
8 | 9 | * 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/>. |
---|
21 | 10 | */ |
---|
22 | 11 | |
---|
23 | 12 | #include <linux/kernel.h> |
---|
.. | .. |
---|
487 | 476 | int i; |
---|
488 | 477 | |
---|
489 | 478 | 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]); |
---|
491 | 480 | |
---|
492 | 481 | for (i = 0, len = 0; |
---|
493 | 482 | len < PAGE_SIZE && i < ARRAY_SIZE(cabc_modes); i++) |
---|