l3.h 524 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _L3_H_
  3. #define _L3_H_ 1
  4. struct l3_pins {
  5. void (*setdat)(struct l3_pins *, int);
  6. void (*setclk)(struct l3_pins *, int);
  7. void (*setmode)(struct l3_pins *, int);
  8. int gpio_data;
  9. int gpio_clk;
  10. int gpio_mode;
  11. int use_gpios;
  12. int data_hold;
  13. int data_setup;
  14. int clock_high;
  15. int mode_hold;
  16. int mode;
  17. int mode_setup;
  18. };
  19. struct device;
  20. int l3_write(struct l3_pins *adap, u8 addr, u8 *data, int len);
  21. int l3_set_gpio_ops(struct device *dev, struct l3_pins *adap);
  22. #endif