diff options
Diffstat (limited to 'include/habv4.h')
-rw-r--r-- | include/habv4.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/habv4.h b/include/habv4.h new file mode 100644 index 0000000000..fb6ed99d82 --- /dev/null +++ b/include/habv4.h @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2014, 2015 Marc Kleine-Budde <mkl@pengutronix.de> + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * 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 __HABV4_H +#define __HABV4_H + +#ifdef CONFIG_HABV4 +int habv4_get_status(void); +#else +static inline int habv4_get_status() +{ + return -EPERM; +} +#endif + +#endif /* __HABV4_H */ |