mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
regmap: Updates for v5.17
A very quiet release for regmap: - Allow a custom _update_bits() operation for devices with no bus. - Fix an issue with creation of the debugfs directory when attaching a device to an existing no device regmap. - A trivial formatting fix. -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmHcLcAACgkQJNaLcl1U h9AyZgf/XnwgUltXGyDUgo9OsHB6Jspmua7IFVfTXT9sJckJPCeqxJlWBiH+fv+k GJZwCPVmeBjRzGJV7jwOSXZgEV2JOotfLCBiGM6ZXepwisy14n4QVLN53FwJbbBW 9OhuBGnXcS3KWJEtwz+0+ZaY6RXVWTXHL3L/T2GF2k+CfOHSvysTMOU03RVvUF8D 3XmdghS8J8EY0RIGXZpnMD8nEePSfhq+TcLbsf9xguixo2rvd8PKFX1rcYjewn9K z4Srv/oERKaEfMiWk2VnYm3tjaRdFgugItpfIswJ4Eo1xe/ppEBcah3uSBja3DNB bnp1HpGclNYRRG3Stq6WokRu8AEFOg== =hTba -----END PGP SIGNATURE----- Merge tag 'regmap-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap Pull regmap updates from Mark Brown: "A very quiet release for regmap: - Allow a custom _update_bits() operation for devices with no bus. - Fix an issue with creation of the debugfs directory when attaching a device to an existing no device regmap. - A trivial formatting fix" [ The custom _update_bits comit came in earlier through the networking tree that had merged it for its own needs ] * tag 'regmap-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap: regmap: debugfs: Fix indentation regmap: Call regmap_debugfs_exit() prior to _init()
This commit is contained in:
commit
2d7852c379
2 changed files with 2 additions and 1 deletions
|
@ -598,7 +598,7 @@ void regmap_debugfs_init(struct regmap *map)
|
|||
map->debugfs_name = kasprintf(GFP_KERNEL, "dummy%d",
|
||||
dummy_index);
|
||||
if (!map->debugfs_name)
|
||||
return;
|
||||
return;
|
||||
name = map->debugfs_name;
|
||||
dummy_index++;
|
||||
}
|
||||
|
|
|
@ -647,6 +647,7 @@ int regmap_attach_dev(struct device *dev, struct regmap *map,
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
regmap_debugfs_exit(map);
|
||||
regmap_debugfs_init(map);
|
||||
|
||||
/* Add a devres resource for dev_get_regmap() */
|
||||
|
|
Loading…
Reference in a new issue