diff options
author | 2023-03-21 17:33:52 -0700 | |
---|---|---|
committer | 2023-03-27 16:10:20 +0200 | |
commit | 54c9fcd187dd3bbc151cff9e5be01dda4f23dd0d (patch) | |
tree | 723a17185c1cd9dde3f48221364ca56154e00eda /tools/perf/scripts/python/export-to-postgresql.py | |
parent | platform/x86/intel/ifs: Separate ifs_pkg_auth from ifs_data (diff) | |
download | wireguard-linux-54c9fcd187dd3bbc151cff9e5be01dda4f23dd0d.tar.xz wireguard-linux-54c9fcd187dd3bbc151cff9e5be01dda4f23dd0d.zip |
platform/x86/intel/ifs: Reorganize driver data
The struct holding device driver data contained both read only(ro)
and read write(rw) fields.
Separating ro fields from rw fields was recommended as
a preferable design pattern during review[1].
Group ro fields into a separate const struct. Associate it to
the miscdevice being registered by keeping its pointer in the
same container struct as the miscdevice.
Link: https://lore.kernel.org/lkml/Y+9H9otxLYPqMkUh@kroah.com/ [1]
Signed-off-by: Jithu Joseph <jithu.joseph@intel.com>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/20230322003359.213046-3-jithu.joseph@intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions