blob: b8aee35b71e2f97868e33e02e90b92f0e9522105 [file] [log] [blame]
Amit Arorae9e16b02010-08-03 10:15:20 +05301#include <stdio.h>
2#include <stdlib.h>
3#include <unistd.h>
4#include <string.h>
5#include <dirent.h>
6#include <getopt.h>
7#include <errno.h>
8
9//#define PATH_MAX 1024
10//#define NAME_MAX 128
11#define VALUE_MAX 16
12
13struct regulator_info {
14 char name[NAME_MAX];
15 char state[VALUE_MAX];
16 char status[VALUE_MAX];
17 char type[VALUE_MAX];
18 char opmode[VALUE_MAX];
19 int microvolts;
20 int microamps;
21 int num_users;
22} *regulators_info;
23
24extern int numregulators;
25
26extern void usage(char **argv);
27extern void print_regulator_info(int verbose);
28extern void get_sensor_info(char *path, char *name, char *sensor, int verbose);
29
30