keypad.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Samsung Platform - Keypad platform data definitions
  3. *
  4. * Copyright (C) 2010 Samsung Electronics Co.Ltd
  5. * Author: Joonyoung Shim <jy0922.shim@samsung.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by the
  9. * Free Software Foundation; either version 2 of the License, or (at your
  10. * option) any later version.
  11. */
  12. #ifndef __PLAT_SAMSUNG_KEYPAD_H
  13. #define __PLAT_SAMSUNG_KEYPAD_H
  14. #include <linux/input/samsung-keypad.h>
  15. /**
  16. * samsung_keypad_set_platdata - Set platform data for Samsung Keypad device.
  17. * @pd: Platform data to register to device.
  18. *
  19. * Register the given platform data for use with Samsung Keypad device.
  20. * The call will copy the platform data, so the board definitions can
  21. * make the structure itself __initdata.
  22. */
  23. extern void samsung_keypad_set_platdata(struct samsung_keypad_platdata *pd);
  24. /* defined by architecture to configure gpio. */
  25. extern void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols);
  26. #endif /* __PLAT_SAMSUNG_KEYPAD_H */