media: atomisp: Add atomisp_register_sensor_no_gmin() helper
authorHans de Goede <hdegoede@redhat.com>
Sun, 15 Jan 2023 21:09:57 +0000 (22:09 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 07:05:59 +0000 (08:05 +0100)
commitf05cf2545ba86156d6acc024b26f35f21636bb83
tree3e54981ce4d7665491594323ab8eee25223cac7b
parentba49e91e01876be72186faac75eafd2c0944e581
media: atomisp: Add atomisp_register_sensor_no_gmin() helper

The DSDT of all Windows BYT / CHT devices which I have seen has proper
ACPI powermagement for the clk and regulators used by the sensors.

So there is no need for the whole custom atomisp_gmin custom code to
disable the ACPI pm and directly poke at the PMIC for this.

Add new atomisp_register_sensor_no_gmin() + atomisp_unregister_subdev()
helpers which allow registering a sensor with the atomisp code without
using any of the atomisp_gmin power-management code.

Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/include/linux/atomisp_platform.h
drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c