hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/include/linux/mfd/madera/pdata.h
....@@ -1,12 +1,8 @@
1
-// SPDX-License-Identifier: GPL-2.0
1
+/* SPDX-License-Identifier: GPL-2.0-only */
22 /*
33 * Platform data for Cirrus Logic Madera codecs
44 *
55 * Copyright (C) 2015-2018 Cirrus Logic
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by the
9
- * Free Software Foundation; version 2.
106 */
117
128 #ifndef MADERA_PDATA_H
....@@ -16,6 +12,7 @@
1612 #include <linux/regulator/arizona-ldo1.h>
1713 #include <linux/regulator/arizona-micsupp.h>
1814 #include <linux/regulator/machine.h>
15
+#include <sound/madera-pdata.h>
1916
2017 #define MADERA_MAX_MICBIAS 4
2118 #define MADERA_MAX_CHILD_MICBIAS 4
....@@ -24,8 +21,6 @@
2421
2522 struct gpio_desc;
2623 struct pinctrl_map;
27
-struct madera_irqchip_pdata;
28
-struct madera_codec_pdata;
2924
3025 /**
3126 * struct madera_pdata - Configuration data for Madera devices
....@@ -35,11 +30,13 @@
3530 * @micvdd: Substruct of pdata for the MICVDD regulator
3631 * @irq_flags: Mode for primary IRQ (defaults to active low)
3732 * @gpio_base: Base GPIO number
38
- * @gpio_configs: Array of GPIO configurations (See Documentation/pinctrl.txt)
33
+ * @gpio_configs: Array of GPIO configurations (See
34
+ * Documentation/driver-api/pinctl.rst)
3935 * @n_gpio_configs: Number of entries in gpio_configs
4036 * @gpsw: General purpose switch mode setting. Depends on the external
4137 * hardware connected to the switch. (See the SW1_MODE field
4238 * in the datasheet for the available values for your codec)
39
+ * @codec: Substruct of pdata for the ASoC codec driver
4340 */
4441 struct madera_pdata {
4542 struct gpio_desc *reset;
....@@ -54,6 +51,8 @@
5451 int n_gpio_configs;
5552
5653 u32 gpsw[MADERA_MAX_GPSW];
54
+
55
+ struct madera_codec_pdata codec;
5756 };
5857
5958 #endif