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