hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c
....@@ -1,13 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * TPO TD043MTEA1 Panel driver
34 *
45 * Author: GraÅžvydas Ignotas <notasas@gmail.com>
56 * 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.
117 */
128
139 #include <linux/module.h>
....@@ -173,7 +169,7 @@
173169 {
174170 struct panel_drv_data *ddata = dev_get_drvdata(dev);
175171
176
- return snprintf(buf, PAGE_SIZE, "%d\n", ddata->vmirror);
172
+ return sysfs_emit(buf, "%d\n", ddata->vmirror);
177173 }
178174
179175 static ssize_t tpo_td043_vmirror_store(struct device *dev,
....@@ -203,7 +199,7 @@
203199 {
204200 struct panel_drv_data *ddata = dev_get_drvdata(dev);
205201
206
- return snprintf(buf, PAGE_SIZE, "%d\n", ddata->mode);
202
+ return sysfs_emit(buf, "%d\n", ddata->mode);
207203 }
208204
209205 static ssize_t tpo_td043_mode_store(struct device *dev,