]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
iio: adc: axp20x_adc: put ADC rate setting in a per-variant function
authorQuentin Schulz <quentin.schulz@free-electrons.com>
Mon, 15 Jan 2018 10:33:35 +0000 (11:33 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 30 Jan 2018 18:33:22 +0000 (18:33 +0000)
commit0659ecb5dfc10e4bb771d72e8b1b5c429f612082
tree7b5fad17501f3d9a7473183a7d33e179da4b034f
parent64eb8a15a439b56243697237bab6e2c48281138c
iio: adc: axp20x_adc: put ADC rate setting in a per-variant function

To prepare for a new comer that set a different register with different
values, move rate setting in a function that is specific to each AXP
variant.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/axp20x_adc.c