Re: [PATCH] iio: magnetometer: mag3110: add optional vcc regulator operation support

2018-12-07 Thread Fabio Estevam
Hi Anson, On Thu, Dec 6, 2018 at 3:05 AM Anson Huang wrote: > static int mag3110_request(struct mag3110_data *data) > @@ -469,17 +471,27 @@ static int mag3110_probe(struct i2c_client *client, > struct iio_dev *indio_dev; > int ret; > > + indio_dev = devm_iio_device_alloc(&

[PATCH] iio: magnetometer: mag3110: add optional vcc regulator operation support

2018-12-05 Thread Anson Huang
The magnetometer's power supply could be controlled by regulator on some platforms, such as i.MX6Q-SABRESD board, the mag3110's power supply is controlled by a GPIO fixed regulator, need to make sure the regulator is enabled before any communication with mag3110, this patch adds optional vcc regula