summaryrefslogtreecommitdiff
path: root/include/linux/iosys-map.h
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2025-09-05 17:09:18 +0100
committerMark Brown <broonie@kernel.org>2025-09-05 17:09:18 +0100
commit92b9c2b7a88c07324d70ea877cfe2d90ac823dbf (patch)
treec5c6df6a87eb3df891ce33191b80fe3aefac5add /include/linux/iosys-map.h
parent9d35d068fb138160709e04e3ee97fe29a6f8615b (diff)
parentb497e1a1a2b10c4ddb28064fba229365ae03311a (diff)
regulator: pf530x: NXP PF530x regulator driver
Merge series from Woodrow Douglass <wdouglass@carnegierobotics.com>: I wrote this driver to read settings and state from the nxp pf530x regulator. Please consider it for inclusion, any criticism is welcome.
Diffstat (limited to 'include/linux/iosys-map.h')
-rw-r--r--include/linux/iosys-map.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/linux/iosys-map.h b/include/linux/iosys-map.h
index 4696abfd311c..3e85afe794c0 100644
--- a/include/linux/iosys-map.h
+++ b/include/linux/iosys-map.h
@@ -264,12 +264,7 @@ static inline bool iosys_map_is_set(const struct iosys_map *map)
*/
static inline void iosys_map_clear(struct iosys_map *map)
{
- if (map->is_iomem) {
- map->vaddr_iomem = NULL;
- map->is_iomem = false;
- } else {
- map->vaddr = NULL;
- }
+ memset(map, 0, sizeof(*map));
}
/**