.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * TPO TD043MTEA1 Panel driver |
---|
3 | 4 | * |
---|
4 | 5 | * Author: GraÅžvydas Ignotas <notasas@gmail.com> |
---|
5 | 6 | * Converted to new DSS device model: Tomi Valkeinen <tomi.valkeinen@ti.com> |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify |
---|
8 | | - * it under the terms of the GNU General Public License as published by |
---|
9 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
10 | | - * (at your option) any later version. |
---|
11 | 7 | */ |
---|
12 | 8 | |
---|
13 | 9 | #include <linux/module.h> |
---|
.. | .. |
---|
173 | 169 | { |
---|
174 | 170 | struct panel_drv_data *ddata = dev_get_drvdata(dev); |
---|
175 | 171 | |
---|
176 | | - return snprintf(buf, PAGE_SIZE, "%d\n", ddata->vmirror); |
---|
| 172 | + return sysfs_emit(buf, "%d\n", ddata->vmirror); |
---|
177 | 173 | } |
---|
178 | 174 | |
---|
179 | 175 | static ssize_t tpo_td043_vmirror_store(struct device *dev, |
---|
.. | .. |
---|
203 | 199 | { |
---|
204 | 200 | struct panel_drv_data *ddata = dev_get_drvdata(dev); |
---|
205 | 201 | |
---|
206 | | - return snprintf(buf, PAGE_SIZE, "%d\n", ddata->mode); |
---|
| 202 | + return sysfs_emit(buf, "%d\n", ddata->mode); |
---|
207 | 203 | } |
---|
208 | 204 | |
---|
209 | 205 | static ssize_t tpo_td043_mode_store(struct device *dev, |
---|