summaryrefslogtreecommitdiffstats
path: root/drivers/base/regmap/internal.h
blob: 4c7460fa4c44adeec58cd538d8cbdddcdc217bad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef REGMAP_INTERNAL_H_
#define REGMAP_INTERNAL_H_

#include <linux/list.h>
#include <driver.h>

struct regmap_bus;

struct regmap {
	struct device_d *dev;
	const struct regmap_bus *bus;
	const char *name;
	void *bus_context;
	struct list_head list;
	int reg_bits;
	int reg_stride;
	int pad_bits;
	int val_bits;
	int val_bytes;
	unsigned int max_register;

	struct cdev cdev;
};

enum regmap_endian regmap_get_val_endian(struct device_d *dev,
					 const struct regmap_bus *bus,
					 const struct regmap_config *config);

#endif