aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAban Bedel <[email protected]>2017-03-31 13:44:46 +0100
committerGreg Kroah-Hartman <[email protected]>2017-04-08 17:51:48 +0200
commit5253193d5479006b14dbe475740d031ce3e01570 (patch)
tree8e386997cc7a3c1806da8998168932e41ac38f74 /tools/perf/scripts/python
parent1b595505bf68bf6a821e944f87766af76d515f96 (diff)
nvmem: core: Allow allocating several anonymous nvmem devices
Currently the nvmem core expect the config to provide a name and ID that are then used to create the device name. When no device name is given 'nvmem' is used. However if there is several such anonymous devices they all get named 'nvmem0', which doesn't work. To fix this problem use the ID from the config only when the config also provides a name. When no name is provided take the uinque ID of the nvmem device instead. Signed-off-by: Aban Bedel <[email protected]> Reviewed-by: Moritz Fischer <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions