Benign repos Download

imx412.c

Includes Linux kernel module headerAssigns a negative errno constant
SHA-2562d402cda5eaeb37eb17a930024ebf2bd6f4b7c39786f472423b86131f69b6a12
MaleculeO(Er)H(Os)

Evidence

Includes Linux kernel module header lines 1–23
⋯4 lines
5 * Copyright (C) 2021 Intel Corporation
6 */
7#include <linux/unaligned.h>
8
9#include <linux/clk.h>
10#include <linux/delay.h>
11#include <linux/i2c.h>
12#include <linux/module.h>
13#include <linux/pm_runtime.h>
14#include <linux/regulator/consumer.h>
15
16#include <media/v4l2-ctrls.h>
17#include <media/v4l2-fwnode.h>
18#include <media/v4l2-subdev.h>
19
20/* Streaming Mode */
21#define IMX412_REG_MODE_SELECT 0x0100
22#define IMX412_MODE_STANDBY 0x00
23#d …
English function-word token "the" lines 70–76
70:49… er list
71 * @num_of_regs: Number of registers in the list
72 * @regs: Pointer to register list
73 */
74struct imx412_reg_list {
75 u32 num_of_regs;
76 const s …
English function-word token "for" lines 89–97
89:21… ink frequency index
90 * @reg_list: Register list for sensor mode
91 */
92struct imx412_mode {
⋯5 lines
Kernel error code return lines 433–446
433:19… {0};
434 u8 data_buf[4] = {0};
435 int ret;
436
437 if (WARN_ON(len > 4))
438 return -EINVAL;
439
440 put_unaligned_be16(reg, addr_buf);
⋯6 lines
Assigns a negative errno constant lines 624–634
624:5… ault:
625 dev_err(imx412->dev, "Invalid control %d\n", ctrl->id);
626 ret = -EINVAL;
627 }
628
⋯6 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.