| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * (C) Copyright 2008 |
|---|
| 3 | 4 | * 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. |
|---|
| 9 | 5 | * |
|---|
| 10 | 6 | * This driver implements a lcd device for the ILITEK 922x display |
|---|
| 11 | 7 | * controller. The interface to the display is SPI and the display's |
|---|
| .. | .. |
|---|
| 111 | 107 | * lower frequency when the registers are read/written. |
|---|
| 112 | 108 | * The macro sets the frequency in the spi_transfer structure if |
|---|
| 113 | 109 | * the frequency exceeds the maximum value. |
|---|
| 110 | + * @s: pointer to an SPI device |
|---|
| 111 | + * @x: pointer to the read/write buffer pair |
|---|
| 114 | 112 | */ |
|---|
| 115 | 113 | #define CHECK_FREQ_REG(s, x) \ |
|---|
| 116 | 114 | do { \ |
|---|
| .. | .. |
|---|
| 125 | 123 | |
|---|
| 126 | 124 | #define set_tx_byte(b) (tx_invert ? ~(b) : b) |
|---|
| 127 | 125 | |
|---|
| 128 | | -/** |
|---|
| 126 | +/* |
|---|
| 129 | 127 | * ili922x_id - id as set by manufacturer |
|---|
| 130 | 128 | */ |
|---|
| 131 | 129 | static int ili922x_id = 1; |
|---|
| .. | .. |
|---|
| 134 | 132 | static int tx_invert; |
|---|
| 135 | 133 | module_param(tx_invert, int, 0); |
|---|
| 136 | 134 | |
|---|
| 137 | | -/** |
|---|
| 135 | +/* |
|---|
| 138 | 136 | * driver's private structure |
|---|
| 139 | 137 | */ |
|---|
| 140 | 138 | struct ili922x { |
|---|
| .. | .. |
|---|
| 297 | 295 | #ifdef DEBUG |
|---|
| 298 | 296 | /** |
|---|
| 299 | 297 | * ili922x_reg_dump - dump all registers |
|---|
| 298 | + * |
|---|
| 299 | + * @spi: pointer to an SPI device |
|---|
| 300 | 300 | */ |
|---|
| 301 | 301 | static void ili922x_reg_dump(struct spi_device *spi) |
|---|
| 302 | 302 | { |
|---|