media: i2c: ov5640: Fix the order for enabling regulators
authorFabio Estevam <festevam@gmail.com>
Fri, 28 Jun 2019 11:00:35 +0000 (07:00 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 25 Jul 2019 10:37:14 +0000 (06:37 -0400)
commit24c8ac890130fda9aa0368dabba1b08d57d3d99e
tree6bb191edcfca60e7c257d2fa4b3f2f690cdbfcea
parent8791a102ce579346cea9d2f911afef1c1985213c
media: i2c: ov5640: Fix the order for enabling regulators

According to the OV5640 datasheet the following sequence needs to be
followed when powering the OV5640 supplies:

- DOVDD
- AVDD
- DVDD

So follow this order inside the ov5640_supply_name[] array, so that
the regulator_bulk() functions can enable the regulator in the
correct sequence.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov5640.c