mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 01:21:28 +00:00
b6e10ff6c2
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
15 lines
333 B
C
15 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
|