linux/drivers/base/regmap
Lars-Peter Clausen abbb18fb4a regmap: return ERR_PTR instead of NULL in regmap_init
The regmap_init documentation states that it will either return a pointer to a
valid regmap structure or a ERR_PTR in case of an error. Currently it returns a
NULL pointer in case no bus or no config was given. Since NULL is not a
ERR_PTR a caller might assume that it is a pointer to a valid regmap structure,
so return a ERR_PTR(-EINVAL) instead.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2011-11-14 21:44:45 +00:00
..
internal.h regmap: Track if the register cache is dirty and suppress unneeded syncs 2011-11-08 11:38:15 +00:00
Kconfig regmap: Add a reusable irq_chip for regmap based interrupt controllers 2011-11-08 11:29:48 +00:00
Makefile Merge branches 'regmap/irq' and 'regmap/cache' into regmap-next 2011-11-08 14:16:06 +00:00
regcache-indexed.c regmap: Return a sensible error code if we fail to read the cache 2011-10-10 10:24:03 +01:00
regcache-lzo.c Merge branches 'regmap/irq' and 'regmap/cache' into regmap-next 2011-11-08 14:16:06 +00:00
regcache-rbtree.c regmap: Ensure rbtree syncs registers set to zero properly 2011-10-10 10:26:48 +01:00
regcache.c regmap: Track if the register cache is dirty and suppress unneeded syncs 2011-11-08 11:38:15 +00:00
regmap-debugfs.c regmap: Include the last register in debugfs output 2011-09-05 10:58:31 -07:00
regmap-i2c.c regmap: Remove redundant owner field from the bus type struct 2011-09-05 10:57:04 -07:00
regmap-irq.c regmap: Add a reusable irq_chip for regmap based interrupt controllers 2011-11-08 11:29:48 +00:00
regmap-spi.c Merge branch 'for-linus' of git://opensource.wolfsonmicro.com/regmap 2011-10-25 13:57:45 +02:00
regmap.c regmap: return ERR_PTR instead of NULL in regmap_init 2011-11-14 21:44:45 +00:00