summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorXiaofeng Yuan <xiaofengmian@163.com>2026-06-24 02:16:12 +0000
committerJonathan Cameron <jic23@kernel.org>2026-07-02 16:43:51 +0100
commit84635517785582f94993ed13eb7d370a76900878 (patch)
tree971a741deab8cbea7d8287f58ae9f9013cc6b314 /tools/perf/scripts/python
parentcbfd04ca564037db65e98f97893f49b6d41d84bf (diff)
staging: iio: frequency: reorder dds.h macro parameters to match IIO convention
The IIO subsystem convention requires that the file permission (_mode) parameter be the first argument of IIO_DEV_ATTR_* macros. The dds.h macros had _mode after _channel, causing checkpatch to misinterpret the channel number as a permission value. Reorder the parameters so _mode is first, matching the convention established by IIO_DEV_ATTR_SAMP_FREQ in include/linux/iio/sysfs.h. Where _mode is hard coded, make it a parameter in the interests of consistency and update all callers to match previously hard coded value. Update all callers in ad9834.c and ad9832.c accordingly. Compile tested. Signed-off-by: Xiaofeng Yuan <xiaofengmian@163.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions