cust_mag.h 366 B

1234567891011121314151617181920
  1. #ifndef __CUST_MAG_H__
  2. #define __CUST_MAG_H__
  3. #include <linux/types.h>
  4. #define M_CUST_I2C_ADDR_NUM 2
  5. struct mag_hw {
  6. int i2c_num;
  7. int direction;
  8. int power_id;
  9. int power_vol;
  10. unsigned char i2c_addr[M_CUST_I2C_ADDR_NUM];
  11. int power_vio_id;
  12. int power_vio_vol;
  13. bool is_batch_supported;
  14. };
  15. struct mag_hw *get_mag_dts_func(const char *, struct mag_hw*);
  16. #endif