1 #ifndef _RATIONAL_DEBUGFS_H
2 #define _RATIONAL_DEBUGFS_H
5 * @file energy/rational_debugfs.h
6 * @author Vyacheslav Cherkashin <v.cherkashin@samsung.com>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 * Copyright (C) Samsung Electronics, 2013
28 #include <linux/types.h>
33 * @brief Description of rational number
36 u64 num; /**< Numerator */
37 u64 denom; /**< Denominator */
42 * @def DEFINE_RATIONAL
43 * Initialize of rational struct @hideinitializer
45 #define DEFINE_RATIONAL(rational_name) \
46 struct rational rational_name = { \
54 int create_rational_files(struct dentry *parent, struct rational *r,
55 const char *num_name, const char *denom_name);
58 #endif /* _RATIONAL_DEBUGFS_H */