1*a85cb24fSFrançois Tigeot /*
2*a85cb24fSFrançois Tigeot * Copyright (c) 2020 François Tigeot <ftigeot@wolfpond.org>
3*a85cb24fSFrançois Tigeot * All rights reserved.
4*a85cb24fSFrançois Tigeot *
5*a85cb24fSFrançois Tigeot * Redistribution and use in source and binary forms, with or without
6*a85cb24fSFrançois Tigeot * modification, are permitted provided that the following conditions
7*a85cb24fSFrançois Tigeot * are met:
8*a85cb24fSFrançois Tigeot * 1. Redistributions of source code must retain the above copyright
9*a85cb24fSFrançois Tigeot * notice unmodified, this list of conditions, and the following
10*a85cb24fSFrançois Tigeot * disclaimer.
11*a85cb24fSFrançois Tigeot * 2. Redistributions in binary form must reproduce the above copyright
12*a85cb24fSFrançois Tigeot * notice, this list of conditions and the following disclaimer in the
13*a85cb24fSFrançois Tigeot * documentation and/or other materials provided with the distribution.
14*a85cb24fSFrançois Tigeot *
15*a85cb24fSFrançois Tigeot * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16*a85cb24fSFrançois Tigeot * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17*a85cb24fSFrançois Tigeot * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18*a85cb24fSFrançois Tigeot * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19*a85cb24fSFrançois Tigeot * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20*a85cb24fSFrançois Tigeot * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21*a85cb24fSFrançois Tigeot * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22*a85cb24fSFrançois Tigeot * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23*a85cb24fSFrançois Tigeot * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24*a85cb24fSFrançois Tigeot * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25*a85cb24fSFrançois Tigeot */
26*a85cb24fSFrançois Tigeot
27*a85cb24fSFrançois Tigeot #ifndef _ASM_IOSF_MBI_H
28*a85cb24fSFrançois Tigeot #define _ASM_IOSF_MBI_H
29*a85cb24fSFrançois Tigeot
30*a85cb24fSFrançois Tigeot #define MBI_PMIC_BUS_ACCESS_BEGIN 1
31*a85cb24fSFrançois Tigeot #define MBI_PMIC_BUS_ACCESS_END 2
32*a85cb24fSFrançois Tigeot
33*a85cb24fSFrançois Tigeot static inline int
iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block * nb)34*a85cb24fSFrançois Tigeot iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb)
35*a85cb24fSFrançois Tigeot {
36*a85cb24fSFrançois Tigeot return 0;
37*a85cb24fSFrançois Tigeot }
38*a85cb24fSFrançois Tigeot
39*a85cb24fSFrançois Tigeot static inline int
iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block * nb)40*a85cb24fSFrançois Tigeot iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block *nb)
41*a85cb24fSFrançois Tigeot {
42*a85cb24fSFrançois Tigeot return 0;
43*a85cb24fSFrançois Tigeot }
44*a85cb24fSFrançois Tigeot
45*a85cb24fSFrançois Tigeot #endif /* _ASM_IOSF_MBI_H */
46