Commit | Line | Data |
---|---|---|
6fa3eb70 S |
1 | #ifndef __CUST_MAG_H__ |
2 | #define __CUST_MAG_H__ | |
3 | ||
4 | #include <linux/types.h> | |
5 | ||
6 | #define M_CUST_I2C_ADDR_NUM 2 | |
7 | ||
8 | struct mag_hw { | |
9 | int i2c_num; | |
10 | int direction; | |
11 | int power_id; | |
12 | int power_vol; | |
13 | unsigned char i2c_addr[M_CUST_I2C_ADDR_NUM]; /*!< i2c address list,for chips which has different addresses with different HW layout */ | |
14 | int power_vio_id; | |
15 | int power_vio_vol; | |
16 | bool is_batch_supported; | |
17 | }; | |
18 | ||
19 | extern struct mag_hw* get_cust_mag_hw(void); | |
20 | #endif |