]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: dac: ad3552r: change AD3552R_NUM_CH define name
authorAngelo Dureghello <adureghello@baylibre.com>
Wed, 22 May 2024 15:01:40 +0000 (17:01 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 4 Jun 2024 18:53:07 +0000 (19:53 +0100)
commitd421302a910c63e541ebc9755b38956d135a6603
treeb7ebc69c39fe7592e9b2149cef251d4788358ff5
parentea1c94d785b180ddf0c5933ed1c1b483a06b33b5
iio: dac: ad3552r: change AD3552R_NUM_CH define name

After model data and num_hw_channles introduction, we have:

ad3552r_desc, num_ch: used to keep channel number set in fdt,
ad35xxr_model_data, num_hw_channels: for max channel checks,
AD3552R_NUM_CH: just actually used to define the max array size
on allocated arrays.

Renaming AD3552R_NUM_CH to a more consistent name, as AD3552R_MAX_CH.

Signed-off-by: Angelo Dureghello <adureghello@baylibre.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240522150141.1776196-6-adureghello@baylibre.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ad3552r.c