1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #ifndef __WCD934X_H__
4 #define __WCD934X_H__
5 #include <linux/clk.h>
6 #include <linux/regulator/consumer.h>
7 #include <linux/regmap.h>
8 #include <linux/slimbus.h>
9 
10 #define WCD934X_MAX_SUPPLY	5
11 
12 /**
13  * struct wcd934x_ddata - wcd934x driver data
14  *
15  * @supplies:	wcd934x regulator supplies
16  * @irq_data:	wcd934x irq_chip data
17  * @regmap:	wcd934x regmap pointer
18  * @extclk:	External clock
19  * @dev:	device instance of wcd934x slim device
20  * @irq:	irq for wcd934x.
21  */
22 struct wcd934x_ddata {
23 	struct regulator_bulk_data supplies[WCD934X_MAX_SUPPLY];
24 	struct regmap_irq_chip_data *irq_data;
25 	struct regmap *regmap;
26 	struct clk *extclk;
27 	struct device *dev;
28 	int irq;
29 };
30 
31 #endif /* __WCD934X_H__ */
32