hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/linux/regulator/fixed.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * fixed.h
34 *
....@@ -7,11 +8,6 @@
78 *
89 * Copyright (c) 2009 Nokia Corporation
910 * Roger Quadros <ext-roger.quadros@nokia.com>
10
- *
11
- * This program is free software; you can redistribute it and/or
12
- * modify it under the terms of the GNU General Public License as
13
- * published by the Free Software Foundation; either version 2 of the
14
- * License, or (at your option) any later version.
1511 */
1612
1713 #ifndef __REGULATOR_FIXED_H
....@@ -24,17 +20,7 @@
2420 * @supply_name: Name of the regulator supply
2521 * @input_supply: Name of the input regulator supply
2622 * @microvolts: Output voltage of regulator
27
- * @gpio: GPIO to use for enable control
28
- * set to -EINVAL if not used
2923 * @startup_delay: Start-up time in microseconds
30
- * @gpio_is_open_drain: Gpio pin is open drain or normal type.
31
- * If it is open drain type then HIGH will be set
32
- * through PULL-UP with setting gpio as input
33
- * and low will be set as gpio-output with driven
34
- * to low. For non-open-drain case, the gpio will
35
- * will be in output and drive to low/high accordingly.
36
- * @enable_high: Polarity of enable GPIO
37
- * 1 = Active high, 0 = Active low
3824 * @enabled_at_boot: Whether regulator has been enabled at
3925 * boot or not. 1 = Yes, 0 = No
4026 * This is used to keep the regulator at
....@@ -49,10 +35,8 @@
4935 const char *supply_name;
5036 const char *input_supply;
5137 int microvolts;
52
- int gpio;
5338 unsigned startup_delay;
54
- unsigned gpio_is_open_drain:1;
55
- unsigned enable_high:1;
39
+ unsigned int off_on_delay;
5640 unsigned enabled_at_boot:1;
5741 struct regulator_init_data *init_data;
5842 };