media: atomisp_gmin_platform: Fix axp_regulator_set() writing to the wrong register
authorHans de Goede <hdegoede@redhat.com>
Sun, 16 Jan 2022 21:51:59 +0000 (22:51 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 8 Feb 2022 05:28:37 +0000 (06:28 +0100)
commit9bad7640dcd64d7054601b0f43b52a0af387413f
tree85e9ff2f8469a3668f5a41c3cacc65b517488110
parent144593116bf3c028aa0700ba1ba60acfc19d737e
media: atomisp_gmin_platform: Fix axp_regulator_set() writing to the wrong register

The second write done in axp_regulator_set() must go to the ctrl_reg which
turns the various regulators on/off. This replaces the second write
writing the sel_reg, which sets the voltage for the regulator, for a
second time with a wrong value.

Link: https://lore.kernel.org/linux-media/20220116215204.307649-5-hdegoede@redhat.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c