focaltech.h 762 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Focaltech TouchPad PS/2 mouse driver
  3. *
  4. * Copyright (c) 2014 Red Hat Inc.
  5. * Copyright (c) 2014 Mathias Gottschlag <mgottschlag@gmail.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * Red Hat authors:
  13. *
  14. * Hans de Goede <hdegoede@redhat.com>
  15. */
  16. #ifndef _FOCALTECH_H
  17. #define _FOCALTECH_H
  18. int focaltech_detect(struct psmouse *psmouse, bool set_properties);
  19. #ifdef CONFIG_MOUSE_PS2_FOCALTECH
  20. int focaltech_init(struct psmouse *psmouse);
  21. #else
  22. static inline int focaltech_init(struct psmouse *psmouse)
  23. {
  24. return -ENOSYS;
  25. }
  26. #endif
  27. #endif