regmap: Updates for v4.7
The updates for this kernel release really are trivial: - Check that max_register is set for the flat cache to avoid a crash on initialization. - Fix a typo in the documentation. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAABAgAGBQJXOawKAAoJECTWi3JdVIfQPIwH/iPsnbir5BbHaWE3p0bAF7H2 cIR1g7JJlkIJRTORHO3rbUYTDHNA5xxaw9iNZUBLWvBdPZTIpuqvUll9ufICx5wG c8z+fYtQQBObJq38MiV4Gj8WCMy7LveRMteFaHxokCb0Oe9560ve7DGZRhgJHjSv peAJcPojwoeFU4IXlOZ0QHnfZJBMpUJrRd0ltf7M+rrTGA4KQ0cPjf6k4JHBYwQE 56a3q1Ewjhjizf7QXmw6SpdbpaRd81RCMSQe0WJzTLH5q+xGICvr/yo8Cjnl49TA Wn18R+adJLVmWOvSy792Bb3Xz4tP8ylZsxrSwG7Z5jTAvNcfYtiH1DneQLoxOkw= =koKp -----END PGP SIGNATURE----- Merge tag 'regmap-v4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap Pull regmap updates from Mark Brown: "The updates for this kernel release really are trivial: - Check that max_register is set for the flat cache to avoid a crash on initialization - Fix a typo in the documentation" * tag 'regmap-v4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap: regcache: flat: Require max_registers to be set regmap: cache: Fix typo in cache_bypass parameter description
This commit is contained in:
commit
e2ca54250d
@ -27,7 +27,7 @@ static int regcache_flat_init(struct regmap *map)
|
||||
int i;
|
||||
unsigned int *cache;
|
||||
|
||||
if (!map || map->reg_stride_order < 0)
|
||||
if (!map || map->reg_stride_order < 0 || !map->max_register)
|
||||
return -EINVAL;
|
||||
|
||||
map->cache = kcalloc(regcache_flat_get_index(map, map->max_register)
|
||||
|
@ -529,7 +529,7 @@ EXPORT_SYMBOL_GPL(regcache_mark_dirty);
|
||||
* regcache_cache_bypass: Put a register map into cache bypass mode
|
||||
*
|
||||
* @map: map to configure
|
||||
* @cache_bypass: flag if changes should not be written to the hardware
|
||||
* @cache_bypass: flag if changes should not be written to the cache
|
||||
*
|
||||
* When a register map is marked with the cache bypass option, writes
|
||||
* to the register map API will only update the hardware and not the
|
||||
|
Loading…
Reference in New Issue
Block a user