Commit 4aac7c16 authored by Benjamin Cabé's avatar Benjamin Cabé Committed by Benjamin Cabé
Browse files

drivers: video: use inclusive language



Replaced the term "master" by "primary" in video_ctrls.c/.h

Signed-off-by: default avatarBenjamin Cabé <benjamin@zephyrproject.org>
parent 03696a03
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -226,17 +226,17 @@ int video_init_int_menu_ctrl(struct video_ctrl *ctrl, const struct device *dev,
	return 0;
}

/* By definition, the cluster is in manual mode if the master control value is 0 */
static inline bool is_cluster_manual(const struct video_ctrl *master)
/* By definition, the cluster is in manual mode if the primary control value is 0 */
static inline bool is_cluster_manual(const struct video_ctrl *primary)
{
	return master->type == VIDEO_CTRL_TYPE_INTEGER64 ? master->val64 == 0 : master->val == 0;
	return primary->type == VIDEO_CTRL_TYPE_INTEGER64 ? primary->val64 == 0 : primary->val == 0;
}

void video_cluster_ctrl(struct video_ctrl *ctrls, uint8_t sz)
{
	bool has_volatiles = false;

	__ASSERT(!sz && !ctrls, "The 1st control, i.e. the master, must not be NULL");
	__ASSERT(!sz && !ctrls, "The 1st control, i.e. the primary control, must not be NULL");

	for (uint8_t i = 0; i < sz; i++) {
		ctrls[i].cluster_sz = sz;
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
#define VIDEO_CTRL_FLAG_VOLATILE   BIT(2)
/** Control is inactive, e.g. manual controls of an autocluster in automatic mode */
#define VIDEO_CTRL_FLAG_INACTIVE   BIT(3)
/** Control that affects other controls, e.g. the master control of a cluster */
/** Control that affects other controls, e.g. the primary control of a cluster */
#define VIDEO_CTRL_FLAG_UPDATE     BIT(4)

enum video_ctrl_type {