hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/include/linux/mfd/ti-lmu.h
....@@ -1,13 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * TI LMU (Lighting Management Unit) Devices
34 *
45 * Copyright 2017 Texas Instruments
56 *
67 * Author: Milo Kim <milo.kim@ti.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
118 */
129
1310 #ifndef __MFD_TI_LMU_H__
....@@ -16,17 +13,17 @@
1613 #include <linux/gpio.h>
1714 #include <linux/notifier.h>
1815 #include <linux/regmap.h>
16
+#include <linux/gpio/consumer.h>
1917
2018 /* Notifier event */
2119 #define LMU_EVENT_MONITOR_DONE 0x01
2220
2321 enum ti_lmu_id {
24
- LM3532,
2522 LM3631,
2623 LM3632,
2724 LM3633,
2825 LM3695,
29
- LM3697,
26
+ LM36274,
3027 LMU_MAX_ID,
3128 };
3229
....@@ -68,6 +65,9 @@
6865 LM3632_BOOST, /* Boost output */
6966 LM3632_LDO_POS, /* Positive display bias output */
7067 LM3632_LDO_NEG, /* Negative display bias output */
68
+ LM36274_BOOST, /* Boost output */
69
+ LM36274_LDO_POS, /* Positive display bias output */
70
+ LM36274_LDO_NEG, /* Negative display bias output */
7171 };
7272
7373 /**
....@@ -81,7 +81,7 @@
8181 struct ti_lmu {
8282 struct device *dev;
8383 struct regmap *regmap;
84
- int en_gpio;
84
+ struct gpio_desc *en_gpio;
8585 struct blocking_notifier_head notifier;
8686 };
8787 #endif