diff options
| author | Cengiz Can <cengiz.can@canonical.com> | 2026-07-31 01:02:58 +0300 |
|---|---|---|
| committer | Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> | 2026-08-26 17:07:34 +0200 |
| commit | beb0556bccecfea7cfe54d7263dad95950b577ed (patch) | |
| tree | 4817e739112847811f573fc81850e770d4b74487 /tools/perf/scripts/python | |
| parent | d42c1df90df49b19c063d029c7d67e91751edc96 (diff) | |
| download | linux-next-beb0556bccecfea7cfe54d7263dad95950b577ed.tar.gz linux-next-beb0556bccecfea7cfe54d7263dad95950b577ed.zip | |
gpio: sloppy-logic-analyzer: use debugfs_create_file() for buf_size and capture
The "buf_size" and "capture" debugfs files are created with
debugfs_create_file_unsafe() and DEFINE_DEBUGFS_ATTRIBUTE() fops. That is
safe on its own: debugfs_attr_read()/write() take a debugfs reference
themselves, so debugfs_remove_recursive() drains them on removal.
Now that "trigger" uses debugfs_create_file(), switch these two to the
same call so all three debugfs files in this driver are created uniformly.
This is a cosmetic change; the extra debugfs_file_get()/put() added by the
full_proxy wrapper is negligible.
Suggested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Assisted-by: Claude:claude-opus-4.8
Signed-off-by: Cengiz Can <cengiz.can@canonical.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://patch.msgid.link/20260730220258.358169-3-cengiz.can@canonical.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
