aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRohit Sarkar <[email protected]>2020-03-31 17:17:30 +0530
committerJonathan Cameron <[email protected]>2020-04-19 16:56:25 +0100
commitae1d37a9bb4bd8d9091a40d153143e99b115ee37 (patch)
treeafcc42188133dd16c150120ab68034c6b0636e8b /tools/perf/scripts/python
parent4ab717d9e8bdc14ce9f76d1417bc5873c4f493a1 (diff)
iio: imu: adis16400: use DEFINE_DEBUGFS_ATTRIBUTE instead of DEFINE_SIMPLE_ATTRIBUTE
debugfs_create_file_unsafe does not protect the fops handed to it against file removal. DEFINE_DEBUGFS_ATTRIBUTE makes the fops aware of the file lifetime and thus protects it against removal. Signed-off-by: Rohit Sarkar <[email protected]> Tested-by Nuno Sá <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions