1
0
Fork 0

regmap: Rejig struct declarations for stubbed API

Ensure we have a forward declaration of struct regmap that isn't just
the return value of regmap_init() and make the definition of the
register defaults available.

Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
hifive-unleashed-5.1
Mark Brown 2012-03-11 11:49:17 +00:00
parent 994f5db65e
commit b83d2ff013
1 changed files with 3 additions and 2 deletions

View File

@ -16,11 +16,10 @@
#include <linux/device.h>
#include <linux/list.h>
#ifdef CONFIG_REGMAP
struct module;
struct i2c_client;
struct spi_device;
struct regmap;
/* An enum of all the supported cache types */
enum regcache_type {
@ -42,6 +41,8 @@ struct reg_default {
unsigned int def;
};
#ifdef CONFIG_REGMAP
/**
* Configuration for the register map of a device.
*