summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2023-09-18 14:57:01 +0300
committerWolfram Sang <wsa@kernel.org>2023-09-19 22:57:52 +0300
commit3b0e2091d76ed31b0a135ba971d2d71dacc5151a (patch)
treec6f71f50b3e96cd41d3a0be9b615d775028c5c99 /tools/perf/scripts/python/export-to-sqlite.py
parent941266451b5d6691fa3b17526d9f3a35ef4bf406 (diff)
downloadlinux-3b0e2091d76ed31b0a135ba971d2d71dacc5151a.tar.xz
i2c: i801: add helper i801_restore_regs
In few places relevant registers are reset to their initial value on driver load. Factor this out to new helper i801_restore_regs to avoid code duplication. Even though no actual problems are known, this patch may contribute to avoiding potential issues by: - restoring register values also in the error path of i2c_add_adapter - making restoring registers the last step (especially in i801_remove) Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Reviewed-by: Jean Delvare <jdelvare@suse.de> Acked-by: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions