ftsCrossCompile.c 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * FTS Capacitive touch screen controller (FingerTipS)
  4. *
  5. * Copyright (C) 2016-2019, STMicroelectronics Limited.
  6. * Authors: AMG(Analog Mems Group) <[email protected]>
  7. *
  8. *
  9. * This program is free software; you can redistribute it and/or modify it
  10. * under the terms of the GNU General Public License version 2 as published by
  11. * the Free Software Foundation.
  12. *
  13. * This program is distributed in the hope that it will be useful, but WITHOUT
  14. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  15. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  16. * more details.
  17. *
  18. * You should have received a copy of the GNU General Public License along with
  19. * this program. If not, see <http://www.gnu.org/licenses/>.
  20. */
  21. /**
  22. *
  23. **************************************************************************
  24. ** STMicroelectronics **
  25. **************************************************************************
  26. ** [email protected] **
  27. **************************************************************************
  28. * *
  29. * FTS Cross Compile *
  30. * *
  31. **************************************************************************
  32. **************************************************************************
  33. *
  34. */
  35. #include <linux/init.h>
  36. #include <linux/errno.h>
  37. #include <linux/platform_device.h>
  38. #include <linux/kernel.h>
  39. #include <linux/module.h>
  40. #include <linux/slab.h>
  41. #include <linux/input.h>
  42. #include <linux/interrupt.h>
  43. #include <linux/serio.h>
  44. #include <linux/init.h>
  45. #include <linux/pm.h>
  46. #include <linux/delay.h>
  47. #include <linux/ctype.h>
  48. #include <linux/gpio.h>
  49. #include <linux/i2c.h>
  50. #include <linux/i2c-dev.h>
  51. #include <linux/fs.h>
  52. #include <linux/uaccess.h>
  53. #include <linux/power_supply.h>
  54. #include <linux/firmware.h>
  55. #include <linux/regulator/consumer.h>
  56. #include <linux/of_gpio.h>
  57. //#include <linux/sec_sysfs.h>
  58. #include <linux/i2c.h>
  59. #include <linux/i2c-dev.h>
  60. #include <linux/spi/spidev.h>
  61. #include <linux/fcntl.h>
  62. #include <linux/syscalls.h>
  63. #include "ftsCrossCompile.h"
  64. #include "ftsError.h"
  65. void *stmalloc(size_t size)
  66. {
  67. return kmalloc(size, GFP_KERNEL);
  68. }
  69. void stfree(void *ptr)
  70. {
  71. kfree(ptr);
  72. }