hall_ic_notifier.h 471 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Copyright (C) 2021 Samsung Electronics
  3. */
  4. #ifndef __HALL_NOTIFIER_H__
  5. #define __HALL_NOTIFIER_H__
  6. #include <linux/notifier.h>
  7. struct hall_notifier_context {
  8. const char *name;
  9. int value;
  10. };
  11. extern int hall_notifier_register(struct notifier_block *n);
  12. extern int hall_notifier_unregister(struct notifier_block *nb);
  13. extern int hall_notifier_notify(const char *hall_name, int hall_value);
  14. #endif /* __SEC_VIB_NOTIFIER_H__ */