Skip to content

Commit

Permalink
regmap: Rejig struct declarations for stubbed API
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown committed Mar 11, 2012
1 parent 994f5db commit b83d2ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/linux/regmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -42,6 +41,8 @@ struct reg_default {
unsigned int def;
};

#ifdef CONFIG_REGMAP

/**
* Configuration for the register map of a device.
*
Expand Down

0 comments on commit b83d2ff

Please sign in to comment.