hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/i2c/maxim4c/maxim4c_drv.h
....@@ -10,6 +10,7 @@
1010 #include <linux/workqueue.h>
1111 #include <linux/rk-camera-module.h>
1212 #include <linux/mfd/core.h>
13
+#include <linux/regulator/consumer.h>
1314 #include <media/media-entity.h>
1415 #include <media/v4l2-async.h>
1516 #include <media/v4l2-ctrls.h>
....@@ -27,6 +28,8 @@
2728 #define MAXIM4C_REG_CHIP_ID 0x0D
2829 #define MAX96712_CHIP_ID 0xA0
2930 #define MAX96722_CHIP_ID 0xA1
31
+
32
+#define MAXIM4C_NUM_SUPPLIES 2
3033
3134 enum {
3235 MAXIM4C_HOT_PLUG_OUT = 0,
....@@ -57,8 +60,9 @@
5760 struct i2c_client *client;
5861 struct clk *xvclk;
5962 struct gpio_desc *pwdn_gpio;
60
- struct gpio_desc *pocen_gpio;
6163 struct gpio_desc *lock_gpio;
64
+ struct regulator_bulk_data supplies[MAXIM4C_NUM_SUPPLIES];
65
+ struct regulator *poc_regulator;
6266
6367 struct mutex mutex;
6468
....@@ -104,6 +108,8 @@
104108
105109 struct mfd_cell remote_mfd_devs[MAXIM4C_LINK_ID_MAX];
106110 maxim4c_remote_t *remote_device[MAXIM4C_LINK_ID_MAX];
111
+
112
+ struct dentry *dbgfs_root;
107113 } maxim4c_t;
108114
109115 #endif /* __MAXIM4C_DRV_H__ */