{
struct reg_field *field;
struct cal_csi2_phy *phy;
- int i, j;
+ unsigned int i, j;
if (!dev->data)
return -EINVAL;
static void csi2_phy_deinit(struct cal_ctx *ctx)
{
- int i;
+ unsigned int i;
csi2_cio_power(ctx, false);
status = reg_read(dev, CAL_HL_IRQSTATUS(0));
if (status) {
- int i;
+ unsigned int i;
reg_write(dev, CAL_HL_IRQSTATUS(0), status);
CAL_CSI2_COMPLEXIO_IRQSTATUS(i));
dev_err_ratelimited(&dev->pdev->dev,
- "CIO%d error: %#08x\n", i, cio_stat);
+ "CIO%u error: %#08x\n", i, cio_stat);
reg_write(dev, CAL_CSI2_COMPLEXIO_IRQSTATUS(i),
cio_stat);
/* Check which DMA just finished */
status = reg_read(dev, CAL_HL_IRQSTATUS(1));
if (status) {
- int i;
+ unsigned int i;
/* Clear Interrupt status */
reg_write(dev, CAL_HL_IRQSTATUS(1), status);
/* Check which DMA just started */
status = reg_read(dev, CAL_HL_IRQSTATUS(2));
if (status) {
- int i;
+ unsigned int i;
/* Clear Interrupt status */
reg_write(dev, CAL_HL_IRQSTATUS(2), status);
{
struct cal_ctx *ctx = notifier_to_ctx(notifier);
struct v4l2_subdev_mbus_code_enum mbus_code;
+ unsigned int i, j, k;
int ret = 0;
- int i, j, k;
if (ctx->sensor) {
ctx_info(ctx, "Rejecting subdev %s (Already set!!)",
continue;
ctx_dbg(2, ctx,
- "subdev %s: code: %04x idx: %d\n",
+ "subdev %s: code: %04x idx: %u\n",
subdev->name, mbus_code.code, j);
for (k = 0; k < ARRAY_SIZE(cal_formats); k++) {
if (mbus_code.code == fmt->code) {
ctx->active_fmt[i] = fmt;
ctx_dbg(2, ctx,
- "matched fourcc: %s: code: %04x idx: %d\n",
+ "matched fourcc: %s: code: %04x idx: %u\n",
fourcc_to_str(fmt->fourcc),
fmt->code, i);
ctx->num_active_fmt = ++i;
struct device_node *parent = pdev->dev.of_node;
struct regmap *syscon_camerrx;
u32 syscon_camerrx_offset;
+ unsigned int i;
int ret;
int irq;
- int i;
dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
if (!dev)
{
struct cal_dev *dev = platform_get_drvdata(pdev);
struct cal_ctx *ctx;
- int i;
+ unsigned int i;
cal_dbg(1, dev, "Removing %s\n", CAL_MODULE_NAME);