From 473bc7a3245795bc3a6b834196b8c4f8078c37d5 Mon Sep 17 00:00:00 2001 From: Kiran Gunda Date: Fri, 10 Feb 2017 16:06:13 +0530 Subject: regulator: qpnp-labibb: Add support for notifier callback Some drivers (e.g. OLEDB) would need to know about LAB_VREG_OK status from the LABIBB module. Hence, add support for the notifier callback so that required drivers can be notified about LAB_VREG_OK status. Change-Id: Ib60c94c7557ee6ffb7595dee5bd268bb76faaf6e Signed-off-by: Kiran Gunda --- include/linux/regulator/qpnp-labibb-regulator.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 include/linux/regulator/qpnp-labibb-regulator.h (limited to 'include/linux') diff --git a/include/linux/regulator/qpnp-labibb-regulator.h b/include/linux/regulator/qpnp-labibb-regulator.h new file mode 100644 index 000000000000..247069507fd9 --- /dev/null +++ b/include/linux/regulator/qpnp-labibb-regulator.h @@ -0,0 +1,23 @@ +/* Copyright (c) 2017 The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef _QPNP_LABIBB_REGULATOR_H +#define _QPNP_LABIBB_REGULATOR_H + +enum labibb_notify_event { + LAB_VREG_OK = 1, +}; + +int qpnp_labibb_notifier_register(struct notifier_block *nb); +int qpnp_labibb_notifier_unregister(struct notifier_block *nb); + +#endif -- cgit v1.2.3