]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: iio: ad7606: set proper supply name to devm_regulator_get()
authorEva Rachel Retuya <eraretuya@gmail.com>
Thu, 20 Oct 2016 13:08:22 +0000 (21:08 +0800)
committerJonathan Cameron <jic23@kernel.org>
Sun, 23 Oct 2016 18:34:19 +0000 (19:34 +0100)
commit12edb97471fd4877bc0e527a42e0cbf8ab3937a5
tree314aace38f755fdf15db8657328ebd544c4dacc1
parentfa23105f85749923569a53139a1bb3465bba604d
staging: iio: ad7606: set proper supply name to devm_regulator_get()

The name passed to devm_regulator_get() should match the name of the
supply as specified in the device datasheet. The supply on this device
is called 'AVcc' while currently, the driver uses just 'vcc'.

Use 'avcc' to specify the supply voltage since it is custom to use the
lower-caps version of the datasheet name.

Suggested-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7606.c