diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-09-07 19:24:47 +0200 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-09-30 09:21:02 +0100 |
| commit | 51bedd7b98f95515a790a84198ed3c898124811f (patch) | |
| tree | f229f8f2b9c0ff160cada8df8f3a5d0f35d2ab89 /tools/perf/scripts/python/bin/task-analyzer-report | |
| parent | iio: adc: Constify struct iio_map (diff) | |
| download | linux-51bedd7b98f95515a790a84198ed3c898124811f.tar.gz linux-51bedd7b98f95515a790a84198ed3c898124811f.zip | |
iio: adc: Convert to IIO_MAP()
Use IIO_MAP() instead of hand-writing it. It is much less verbose.
The change has been do with the following coccinelle script:
@@
identifier STRUCT_NAME;
constant NAME, CHANNEL, LABEL;
@@
static const struct iio_map STRUCT_NAME[] = {
...,
- {
- .consumer_dev_name = NAME,
- .consumer_channel = CHANNEL,
- .adc_channel_label = LABEL,
- },
+ IIO_MAP(LABEL, NAME, CHANNEL),
...
};
@@
identifier STRUCT_NAME;
constant NAME, LABEL;
@@
static const struct iio_map STRUCT_NAME[] = {
...,
- {
- .consumer_dev_name = NAME,
- .adc_channel_label = LABEL,
- },
+ IIO_MAP(LABEL, NAME, NULL),
...
};
--
Compile tested only
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/48f08224fab5a7595f650dbcef012d7cac3f972b.1725729801.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/task-analyzer-report')
0 files changed, 0 insertions, 0 deletions
