]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: dac: ad3552r: add model data structure
authorAngelo Dureghello <adureghello@baylibre.com>
Wed, 22 May 2024 15:01:38 +0000 (17:01 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 4 Jun 2024 18:53:06 +0000 (19:53 +0100)
commit2334d5e0b7af8912f140e1df16bd94fb3ab98578
tree1abab13edd7d7b684d32f14ab4411b4254ce9c54
parent80ea2007638017b18b0a900e605d7804aaf8d1ae
iio: dac: ad3552r: add model data structure

Add a "model data" structure to keep useful hardware-related
information as from datasheet, avoiding id-based conditional
choices later on.

Removed id-based checks and filled model-specific structures
with device specific features, In particular, num_hw_channels
is introduced to keep the number of hardware implemented
channels, since 1-channel versions of the DACs are added
in this same patchset.

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