Re: [PATCH 2/2] iio: accell: mma8452: add optional vcc regulator operation support

2018-12-08 Thread Jonathan Cameron
On Thu, 6 Dec 2018 06:23:33 + Anson Huang wrote: > The accelerometer's power supply could be controlled by regulator > on some platforms, such as i.MX6Q-SABRESD board, the mma8451's > power supply is controlled by a GPIO fixed regulator, need to make > sure the regulator is enabled before any

Re: [PATCH 2/2] iio: accell: mma8452: add optional vcc regulator operation support

2018-12-07 Thread Fabio Estevam
Hi Anson, On Thu, Dec 6, 2018 at 4:25 AM Anson Huang wrote: > @@ -1533,6 +1535,14 @@ static int mma8452_probe(struct i2c_client *client, > data->client = client; > mutex_init(&data->lock); > data->chip_info = match->data; > + data->vcc_reg = devm_regulator_get_optio

[PATCH 2/2] iio: accell: mma8452: add optional vcc regulator operation support

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