aboutsummaryrefslogtreecommitdiff
path: root/mm/slab.c
diff options
context:
space:
mode:
authorAlexandru Ardelean2020-09-24 11:05:15 +0300
committerJonathan Cameron2020-09-29 17:27:07 +0100
commit337dbb6ec1acc2e0c7f16b08ddd670faf204fcc8 (patch)
tree34b508af2266a94cfe5ef12c4d215409b64709fa /mm/slab.c
parent25918a9c641c3c73ae94354605860c06fd73a05e (diff)
iio: adc: ad9467: wrap a axi-adc chip-info into a ad9467_chip_info type
There are 2 chip constants that can be added to the chip-info part. The default output-mode and the VREF mask. When adding new chips to this driver, these can be easily omitted, because these also need to be updated in 2 switch statements. However, if adding them in the chip-info constants, they are updated in a single place and propagated in both switch statements. Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/20200924080518.96410-2-alexandru.ardelean@analog.com
Diffstat (limited to 'mm/slab.c')
0 files changed, 0 insertions, 0 deletions