]> git.baikalelectronics.ru Git - kernel.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)
commit35634a19c649049bd440b3b2ddbc68f181ead32f
tree314aace38f755fdf15db8657328ebd544c4dacc1
parentc07ff396b10eb0f77cf69ac86f59f2916240fcad
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