diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-08 14:13:16 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-09 12:43:17 +0300 |
commit | 3465e2e4a24eef9bc9f21aa29d83fd7000c1da48 (patch) | |
tree | 2cfa3b23adc67e9539be2626db3e780f137a1de2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 5221b82d46f26903cf3161fb7d1fc006170811e0 (diff) | |
download | linux-3465e2e4a24eef9bc9f21aa29d83fd7000c1da48.tar.xz |
driver core: bus: bus_register/unregister() cleanups
Convert the bus_register() and bus_unregister() functions to use
bus_to_subsys() and not use the back-pointer to the private structure.
Because bus_add_groups() and bus_remove_groups() were only called in one
place, remove those one-line-wrapper functions and call the real sysfs
group function where it is needed instead, saving another layer of
indirection.
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230208111330.439504-8-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions