keypad.h 870 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Samsung Platform - Keypad platform data definitions
  4. *
  5. * Copyright (C) 2010 Samsung Electronics Co.Ltd
  6. * Author: Joonyoung Shim <jy0922.shim@samsung.com>
  7. */
  8. #ifndef __PLAT_SAMSUNG_KEYPAD_H
  9. #define __PLAT_SAMSUNG_KEYPAD_H
  10. #include <linux/input/samsung-keypad.h>
  11. /**
  12. * samsung_keypad_set_platdata - Set platform data for Samsung Keypad device.
  13. * @pd: Platform data to register to device.
  14. *
  15. * Register the given platform data for use with Samsung Keypad device.
  16. * The call will copy the platform data, so the board definitions can
  17. * make the structure itself __initdata.
  18. */
  19. extern void samsung_keypad_set_platdata(struct samsung_keypad_platdata *pd);
  20. /* defined by architecture to configure gpio. */
  21. extern void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols);
  22. #endif /* __PLAT_SAMSUNG_KEYPAD_H */