]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: adc: ti-adc128s052: Be consistent with arrays
authorMatti Vaittinen <mazziesaccount@gmail.com>
Mon, 7 Apr 2025 11:36:11 +0000 (14:36 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Apr 2025 18:10:03 +0000 (19:10 +0100)
commit6c41d590722c5753d9f15b73d7724a7950c36bf2
tree2181ea2493d593227b65c116a006b37265a3cd11
parent7af2ea72d680327069ad8d9cd63052369e99bbb7
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>
drivers/iio/adc/ti-adc128s052.c