hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/gpio/gpio-syscon.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * SYSCON GPIO driver
34 *
45 * Copyright (C) 2014 Alexander Shiyan <shc_work@mail.ru>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
106 */
117
128 #include <linux/err.h>
....@@ -28,16 +24,16 @@
2824
2925 /**
3026 * struct syscon_gpio_data - Configuration for the device.
31
- * compatible: SYSCON driver compatible string.
32
- * flags: Set of GPIO_SYSCON_FEAT_ flags:
27
+ * @compatible: SYSCON driver compatible string.
28
+ * @flags: Set of GPIO_SYSCON_FEAT_ flags:
3329 * GPIO_SYSCON_FEAT_IN: GPIOs supports input,
3430 * GPIO_SYSCON_FEAT_OUT: GPIOs supports output,
3531 * GPIO_SYSCON_FEAT_DIR: GPIOs supports switch direction.
36
- * bit_count: Number of bits used as GPIOs.
37
- * dat_bit_offset: Offset (in bits) to the first GPIO bit.
38
- * dir_bit_offset: Optional offset (in bits) to the first bit to switch
32
+ * @bit_count: Number of bits used as GPIOs.
33
+ * @dat_bit_offset: Offset (in bits) to the first GPIO bit.
34
+ * @dir_bit_offset: Optional offset (in bits) to the first bit to switch
3935 * GPIO direction (Used with GPIO_SYSCON_FEAT_DIR flag).
40
- * set: HW specific callback to assigns output value
36
+ * @set: HW specific callback to assigns output value
4137 * for signal "offset"
4238 */
4339