At the moment the atomisp has duplicate code for parsing Intel camera sensor GPIOS and calling the special 79234640-9e10-4fea-a5c1-b5aa8b19756f _DSM to get the GPIO type and map it to the sensor. Export int3472_discrete_parse_crs() so that the atomisp driver can reuse the INT3472 code for this.
Showing the changes to include/linux/platform_data (1 of 2 files). Show all
Unified · Split
| @@ -147,6 +147,9 @@ int skl_int3472_get_sensor_adev_and_name(struct device *dev, · 146 unmodified lines | |||
| 147 | struct acpi_device **sensor_adev_ret, | 147 | struct acpi_device **sensor_adev_ret, |
| 148 | const char **name_ret); | 148 | const char **name_ret); |
| 149 | 149 | ||
| 150 | int int3472_discrete_parse_crs(struct int3472_discrete_device *int3472); | ||
| 151 | void int3472_discrete_cleanup(struct int3472_discrete_device *int3472); | ||
| 152 | |||
| 150 | int skl_int3472_register_gpio_clock(struct int3472_discrete_device *int3472, | 153 | int skl_int3472_register_gpio_clock(struct int3472_discrete_device *int3472, |
| 151 | struct gpio_desc *gpio); | 154 | struct gpio_desc *gpio); |
| 152 | int skl_int3472_register_dsm_clock(struct int3472_discrete_device *int3472); | 155 | int skl_int3472_register_dsm_clock(struct int3472_discrete_device *int3472); |