hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/video/backlight/ili922x.c
....@@ -1,11 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * (C) Copyright 2008
34 * Stefano Babic, DENX Software Engineering, sbabic@denx.de.
4
- *
5
- * This program is free software; you can redistribute it and/or
6
- * modify it under the terms of the GNU General Public License as
7
- * published by the Free Software Foundation; either version 2 of
8
- * the License, or (at your option) any later version.
95 *
106 * This driver implements a lcd device for the ILITEK 922x display
117 * controller. The interface to the display is SPI and the display's
....@@ -111,6 +107,8 @@
111107 * lower frequency when the registers are read/written.
112108 * The macro sets the frequency in the spi_transfer structure if
113109 * the frequency exceeds the maximum value.
110
+ * @s: pointer to an SPI device
111
+ * @x: pointer to the read/write buffer pair
114112 */
115113 #define CHECK_FREQ_REG(s, x) \
116114 do { \
....@@ -125,7 +123,7 @@
125123
126124 #define set_tx_byte(b) (tx_invert ? ~(b) : b)
127125
128
-/**
126
+/*
129127 * ili922x_id - id as set by manufacturer
130128 */
131129 static int ili922x_id = 1;
....@@ -134,7 +132,7 @@
134132 static int tx_invert;
135133 module_param(tx_invert, int, 0);
136134
137
-/**
135
+/*
138136 * driver's private structure
139137 */
140138 struct ili922x {
....@@ -297,6 +295,8 @@
297295 #ifdef DEBUG
298296 /**
299297 * ili922x_reg_dump - dump all registers
298
+ *
299
+ * @spi: pointer to an SPI device
300300 */
301301 static void ili922x_reg_dump(struct spi_device *spi)
302302 {