aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorChen-Yu Tsai <wenst@chromium.org>2023-06-09 16:30:02 +0800
committerMark Brown <broonie@kernel.org>2023-06-14 14:25:47 +0100
commit1ff35e66cae53f7090a671afddaee45d4ccd9396 (patch)
treebb5d4c8d9ef722dfc2a8d9cad4d6f39dedd7ffe1 /tools/perf/scripts/python/exported-sql-viewer.py
parent04ba665248ed91576d326041108e5fc2ec2254eb (diff)
regulator: mt6358: Const-ify mt6358_regulator_info data structures
In the MT6358 regulator driver, each regulator is described by a |struct regulator_desc| wrapped by a |struct mt6358_regulator_info|. The latter was tied to the regulator device using the config's driver_data field, which meant that the variables could not be constant. Since each regulator device has a pointer to its regulator_desc, and mt6358_regulator_info wraps that, the driver could use container_of() to retrieve it instead. Switch to using container_of(), drop tha driver_data setting, and const-ify all the regulator descriptions. Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> Link: https://lore.kernel.org/r/20230609083009.2822259-6-wenst@chromium.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions