mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
media: atomisp: add support for possible new names
This patch addresses what it sounds to be a change at the name of some ACPI registers on newer ACPI tables. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
fe670b2a79
commit
1c874c13cd
|
|
@ -394,6 +394,17 @@ static struct gmin_subdev *gmin_subdev_add(struct v4l2_subdev *subdev)
|
|||
gmin_subdevs[i].v1p2_reg = regulator_get(dev, "V1P2A");
|
||||
gmin_subdevs[i].v2p8_vcm_reg = regulator_get(dev, "VPROG4B");
|
||||
|
||||
/*
|
||||
* Based on DTST dumps on newer Atom E3800 devices, it seems that
|
||||
* the regulators data now have new names.
|
||||
*/
|
||||
if (IS_ERR(gmin_subdevs[i].v1p8_reg))
|
||||
gmin_subdevs[i].v1p8_reg = regulator_get(dev, "Regulator1p8v");
|
||||
|
||||
if (IS_ERR(gmin_subdevs[i].v2p8_reg))
|
||||
gmin_subdevs[i].v2p8_reg = regulator_get(dev, "Regulator2p8v");
|
||||
|
||||
|
||||
/* Note: ideally we would initialize v[12]p8_on to the
|
||||
* output of regulator_is_enabled(), but sadly that
|
||||
* API is broken with the current drivers, returning
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user