mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
![Hans de Goede](/assets/img/avatar_default.png)
Make v4l2_async_register_subdev_sensor() try to get a privacy LED associated with the sensor and extend the call_s_stream() wrapper to enable/disable the privacy LED if found. This makes the core handle privacy LED control, rather then having to duplicate this code in all the sensor drivers. Suggested-by: Sakari Ailus <sakari.ailus@linux.intel.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Link: https://lore.kernel.org/r/20230127203729.10205-2-hdegoede@redhat.com
14 lines
333 B
C
14 lines
333 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* V4L2 sub-device pivate header.
|
|
*
|
|
* Copyright (C) 2023 Hans de Goede <hdegoede@redhat.com>
|
|
*/
|
|
|
|
#ifndef _V4L2_SUBDEV_PRIV_H_
|
|
#define _V4L2_SUBDEV_PRIV_H_
|
|
|
|
int v4l2_subdev_get_privacy_led(struct v4l2_subdev *sd);
|
|
void v4l2_subdev_put_privacy_led(struct v4l2_subdev *sd);
|
|
|
|
#endif
|