Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: adc: ti-adc128s052: Be consistent with arrays

The ti-adc128s052 driver has NULL terminated ID arrays for the
of_device_id, spi_device_id and acpi_device_id. All of these are
terminated by having an empty string as the last member of an array.
Only the of_device_id array uses the /* sentinel */ comment.

It's better to be consistent.

This /* sentinel */ comment serves no real purpose these days as people
are used to seeing these ID lists terminated with an empty array
element.

Drop the /* sentinel */ from the of_device_id.

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://patch.msgid.link/bb58002accc696bd4a8fbbab37100c6fa0c29941.1744022065.git.mazziesaccount@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Matti Vaittinen and committed by
Jonathan Cameron
6c41d590 7af2ea72

+1 -1
+1 -1
drivers/iio/adc/ti-adc128s052.c
··· 185 185 { .compatible = "ti,adc124s021", .data = &adc128_config[2] }, 186 186 { .compatible = "ti,adc124s051", .data = &adc128_config[2] }, 187 187 { .compatible = "ti,adc124s101", .data = &adc128_config[2] }, 188 - { /* sentinel */ }, 188 + { } 189 189 }; 190 190 MODULE_DEVICE_TABLE(of, adc128_of_match); 191 191