summaryrefslogtreecommitdiffstats
path: root/certs
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2024-04-11 18:56:47 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2024-04-26 10:48:40 +0100
commit1a1ce0c308136e2bfdf326e1100809fe34558a4e (patch)
tree505f76d2d68da0ef97fdac10d63bbdbc3dfe5234 /certs
parent61d9b1ffc68f109f987811e6d31d6440608f6e5c (diff)
downloadlinux-1a1ce0c308136e2bfdf326e1100809fe34558a4e.tar.gz
linux-1a1ce0c308136e2bfdf326e1100809fe34558a4e.tar.bz2
linux-1a1ce0c308136e2bfdf326e1100809fe34558a4e.zip
media: atomisp: Add atomisp_select_input() helper
When switching input/sensor the s_power() callback must be called for old sensor drivers to power on the new sensor and power off the previous sensor. atomisp_s_input() already does this but atomisp_link_setup() did not do this. Add a new atomisp_select_input() helper which does this and use this in both atomisp_s_input() and atomisp_link_setup() for consistent behavior. Also make atomisp_link_setup() turn the sensor back off when a link gets disabled. 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>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions