iio: accel: kxcjk1013: Add rudimentary regulator support
authorDevajith V S <devajithvs@gmail.com>
Sun, 13 Dec 2020 17:24:36 +0000 (22:54 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 22 Jan 2021 08:52:01 +0000 (08:52 +0000)
commit1d2e91a2db664fa5c0b935fe45314759f6f1fdc5
tree61c8aa6fc8396a3c981e2f029b4027d52aea4889
parentda6336e2484a382b8d080fd9ede1114b5c98b7b0
iio: accel: kxcjk1013: Add rudimentary regulator support

kxcjk1013 devices have VDD and VDDIO power lines. Need
to make sure the regulators are enabled before any
communication with kxcjk1013. This patch introduces
vdd/vddio regulators for kxcjk1013.

Signed-off-by: Devajith V S <devajithvs@gmail.com>
Link: https://lore.kernel.org/r/20201213172437.2779-2-devajithvs@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/kxcjk-1013.c