diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-08-19 13:37:58 +0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-12 20:10:15 +0400 |
commit | 01ed260f22c429337272bf9d25d393a4efd37d51 (patch) | |
tree | 5301b3741f32dd96796187ad566c06aea745e1f6 /drivers/mfd/wm8994.h | |
parent | 4de45284d3927b5068de6ed972b11627a3428427 (diff) | |
download | linux-01ed260f22c429337272bf9d25d393a4efd37d51.tar.xz |
mfd: Add wm8994 register access and default information
Describe the register map to the regmap core so that we can use its
diagnostic features and cache support. This is split out from the patch
using it due to the size so that the actual code change is a bit clearer.
As the various devices are supersets of each other the access maps are
built up by layering the functions on top of each other, though the
interface for specifying the register defaults isn't currently amenable
to this.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/wm8994.h')
-rw-r--r-- | drivers/mfd/wm8994.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/mfd/wm8994.h b/drivers/mfd/wm8994.h new file mode 100644 index 000000000000..bf2bdc1ede38 --- /dev/null +++ b/drivers/mfd/wm8994.h @@ -0,0 +1,24 @@ +/* + * wm8994.h -- WM8994 MFD internals + * + * Copyright 2011 Wolfson Microelectronics PLC. + * + * Author: Mark Brown <broonie@opensource.wolfsonmicro.com> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + */ + +#ifndef __MFD_WM8994_H__ +#define __MFD_WM8994_H__ + +#include <linux/regmap.h> + +extern struct regmap_config wm1811_regmap_config; +extern struct regmap_config wm8994_regmap_config; +extern struct regmap_config wm8958_regmap_config; + +#endif |