kernel_samsung_a34x-permissive/include/linux/hall/hall_ic_notifier.h

19 lines
471 B
C
Raw Normal View History

/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (C) 2021 Samsung Electronics
*/
#ifndef __HALL_NOTIFIER_H__
#define __HALL_NOTIFIER_H__
#include <linux/notifier.h>
struct hall_notifier_context {
const char *name;
int value;
};
extern int hall_notifier_register(struct notifier_block *n);
extern int hall_notifier_unregister(struct notifier_block *nb);
extern int hall_notifier_notify(const char *hall_name, int hall_value);
#endif /* __SEC_VIB_NOTIFIER_H__ */