staging: iio: ad9832: clean-up regulator 'reg'
authorEva Rachel Retuya <eraretuya@gmail.com>
Mon, 31 Oct 2016 17:04:35 +0000 (01:04 +0800)
committerJonathan Cameron <jic23@kernel.org>
Sat, 5 Nov 2016 16:23:01 +0000 (16:23 +0000)
commit43a07e48af44c153f960e4a204771d5911e10134
treea61708718d1ae777d27bee70e5a8be846bf4d508
parenta98461d79ba5bd9c5a83be3f5860cba5d5b54617
staging: iio: ad9832: clean-up regulator 'reg'

Rename regulator 'reg' to 'avdd' so as to be clear what regulator it
stands for specifically. Additionally, get rid of local variable 'reg'
and use direct assignment instead. Update also the goto label pertaining
to the avdd regulator during disable.

Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/frequency/ad9832.c
drivers/staging/iio/frequency/ad9832.h