• Linus Walleij's avatar
    iio: magn: ak8975: add Vid regulator · b21d3f34
    Linus Walleij authored
    The AK8975 has two power sources: Vdd (analog voltage supply)
    and Vid (digital voltage supply). Optionally also obtain the Vid
    supply regulator and enable it.
    
    If an error occurs when enabling one of the regulators: bail out.
    
    Cc: Gregor Boirie <gregor.boirie@parrot.com>
    Cc: Richard Leitner <dev@g0hl1n.net>
    Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com>
    Cc: Lars-Peter Clausen <lars@metafoo.de>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
    b21d3f34
ak8975.c 25.1 KB