]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
IIO: Ingenic JZ47xx: Error check clk_enable calls.
authorArtur Rojek <contact@artur-rojek.eu>
Sun, 19 Jul 2020 20:53:03 +0000 (22:53 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 20 Jul 2020 09:24:01 +0000 (10:24 +0100)
commit1a99dc467943c02e08ee59fe4a3f2093a1ba28cb
tree3528ea17133e6fa9eb5d964b63180ba9ad8e2607
parent3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162
IIO: Ingenic JZ47xx: Error check clk_enable calls.

Introduce error checks for the clk_enable calls used in this driver.
As part of the changes, move clk_enable/clk_disable calls out of
ingenic_adc_set_config and into respective logic of its callers.

Signed-off-by: Artur Rojek <contact@artur-rojek.eu>
Tested-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ingenic-adc.c