From patchwork Wed Jun 15 15:22:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 2084 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id BA2AD3F255 for ; Wed, 15 Jun 2022 17:23:01 +0200 (CEST) Received: by mail-ej1-f71.google.com with SMTP id k7-20020a1709062a4700b006fe92440164sf4388977eje.23 for ; Wed, 15 Jun 2022 08:23:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655306581; cv=pass; d=google.com; s=arc-20160816; b=Sdf1CB3cvjZH+MyWxIz0ROz8XnIloUfVpOYvRfjPYIZHp2i4ZTLqbjF980JYQsau1y D1vU6qbdiWdZS37To0oB6Yj7BzAXqsJZxiHPmRkRoIqCs58wXacL/BwZFM1GmUmA8+MS xKIsmWE37kSDJt04g3fXfHFMSfeksuBFG7RVHudHt08oxcAof7jnEe0XL+Wq63utVCKj Ttrvcn97KHxNITVGW1DXGs/5CVf/4G5tZ7wYhL8Fa2kEJ19JQZmeYi/D+y5tVUgj1WAZ nWrTSxvVFKz6QbrSkp2gb5l90OazrRsg6MYy+h9j3vF14NwIXkGY9bBoY2Xt7qFekOE/ btqw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=KBFhmmXNum8/50MlZ5leDl7Balc6v6LnBa2PQr7+Hho=; b=L+sNFCPg6OGUZe8pfP6ArXbQGA/FsG1MZWCQ6aLxy0/9iFjp37SwwwLX1I7EltL5Ei m4q/R2cnKG77scKHakvEwXrSDmKc8X4txjhpK7/W8xvEVpwpoDwUTuiIAa2cPkyJJWJA 8ZbkhxPSx79W+U7DbFRKX1jK/VarT2heyb4AXUAKfjphNAUXGuLl7pa0dq1jopX1ctx7 x5Z4w3CAOnHduNOQlN3iLHbXmHqJm+ttmJgGslBh5WfEUTQKooj28gnX8a/GQk/cWUBP duB0TfIUcJWSn+o5qC5x0BBiVYTF2QG6MqP72okoe6uWuEEyTpb/ElxaTwac5m+RUzHV jJYQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZZBZjL01; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=KBFhmmXNum8/50MlZ5leDl7Balc6v6LnBa2PQr7+Hho=; b=ZYh1R/VXgjf6HN2sGljjT/RlH5uqWYN85wLma49CZokU5AbVmwSMHcosFI7vXcLmCw YwZ6PTBt/xS+GhDKXU+P3okW6H95HZbgsTCAzubhQanTAXMlwNQbSHPfliPh5eRsA1lL K9Jr3YsccRjFSTlmPbHkDCFzjDj4c6PcLzeO0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=KBFhmmXNum8/50MlZ5leDl7Balc6v6LnBa2PQr7+Hho=; b=b4KSPVIUXit72y+elw5QOhDJSo0PesvQiOaFFt1UxqslI7KFcE6sRtlWs0z3APjqjy aM/Q1XMm0yflubrnTR3linwJZoF6lSE460771xEnqXLv5OV4tWKGNAHz7K7BsaAmk1kM x2xq2lL/o0nJ3rAEo+73WFVc/tMcjwUaoLprorzjQGSANbCgx9x21GzhjpC26Qxg1n2p CzDUDPddIHSUYKJoSn9021T3VrwrCpCtQNaYvfKBYVxVSrfUcyhsDlNvepPUoOJQTQXk 3A3vrqVEn3bbCuZG7UKLjAGTrHmUt3ZCRpFXl6a908yc1iHo/NvwF9Ee8/xBlPIOrN/y am3w== X-Gm-Message-State: AJIora+QrFLyo3WcDbHq310Nf1d/0No9YJRBrgj3EAQwWtNMI5xKwPdI 6uBjdyL/cl9En8mnZWTrXtT/BTBS X-Google-Smtp-Source: AGRyM1sru6Wp9xLLPFCToUBwYVrMzcopXtRJHRWRUtkwdZvZ023Ajee9pfWb/ivEq6nprJyJCxWxOA== X-Received: by 2002:a05:6402:f:b0:42e:561:a1c0 with SMTP id d15-20020a056402000f00b0042e0561a1c0mr269553edu.309.1655306581558; Wed, 15 Jun 2022 08:23:01 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:906:95c1:b0:6ff:45d:c05d with SMTP id n1-20020a17090695c100b006ff045dc05dls132516ejy.5.gmail; Wed, 15 Jun 2022 08:23:00 -0700 (PDT) X-Received: by 2002:a17:906:604f:b0:718:e9e8:9d2a with SMTP id p15-20020a170906604f00b00718e9e89d2amr277673ejj.315.1655306580575; Wed, 15 Jun 2022 08:23:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655306580; cv=none; d=google.com; s=arc-20160816; b=vyFuu6JDVZ3i54CkR+vstJRkl9srkTLfjxguIlv4tJhXimQ/bUGrlRqfA8EExHnBHj T9zxFORrgHQpuA/9omOLmnkrR4BPQExzQGNvpldXcFgJ+ztXBoBsxdSMEuHI/CCtKbK8 LRhqHgdqe7XGxd9NjiX7vXITnOkAAtDmV0rzsD15icWbZbJCHkJmBY7a/H7B8nFR5afq vmJ4//Km48RAHm/9sW3xOOnUrDhRB6DkDsaT1wZDuufWDTLq68Ce2Gad5FhbXJhQKhGQ F2f3ZDF1G2aBJLljhN0cEWb7SV6sJQy8asEmxjQHgtgXJ1D2UNEi29x7ZJdjE5CXFAB8 bASg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=VAHCwBTtH8Pj2LKw8wjRDrJWBfUMiRQHhAGrDzjXtIU=; b=SrQZ8IW2tQtYWrDcI33ituJD2mLlCFRQqAXuQKeSK8Bi5MwC4xdfyttDKl2c570cat IfuCN5kEE4Al3Y8ZDBlf6blKyRHhKVy+Mk2K0Ckejk9eDW6SjykB+UrDJIUgRZDbXfma MYkaLnHjrLfyCPL7rB4JRFINJ4CjDnjDF9JQtCLa2XMJLfZovNmFwb7UhlonVRZPAxVm r797cuK+n9LPxfHRB+a5ak4dV4JUo6Y+p7yl9Pa7Q2dFmpOSekCmUonbbjiXU+VYgL3p 6rMunGSY6Zb1u68i4SNl6bGe+CXz1cNB4m84d7eREU45j3LNdJrT4+YA198o2rGCpfqy WBKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZZBZjL01; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id n20-20020aa7d054000000b0042dcc81a48dsor6505792edo.10.2022.06.15.08.23.00 for (Google Transport Security); Wed, 15 Jun 2022 08:23:00 -0700 (PDT) Received-SPF: pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6402:5250:b0:42e:726e:e064 with SMTP id t16-20020a056402525000b0042e726ee064mr286277edd.153.1655306580156; Wed, 15 Jun 2022 08:23:00 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i.station (net-188-217-51-34.cust.vodafonedsl.it. [188.217.51.34]) by smtp.gmail.com with ESMTPSA id a11-20020aa7cf0b000000b0042be14040c1sm9446272edy.86.2022.06.15.08.22.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jun 2022 08:22:59 -0700 (PDT) From: Tommaso Merciai To: Cc: linux-amarula@amarulasolutions.com, michael@amarulasolutions.com, dario.binacchi@amarulasolutions.com, angelo@amarulasolutions.com, Tommaso Merciai Subject: [PATCH 3/7] media: ov5693: rename clk pdata pointer into xvclk Date: Wed, 15 Jun 2022 17:22:50 +0200 Message-Id: <20220615152254.794909-4-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220615152254.794909-1-tommaso.merciai@amarulasolutions.com> References: <20220615152254.794909-1-tommaso.merciai@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: tommaso.merciai@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZZBZjL01; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Rename clk pdata pointer into xvclk (system clock input), more explicit Signed-off-by: Tommaso Merciai Reviewed-by: Dario Binacchi --- drivers/media/i2c/ov5693.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/media/i2c/ov5693.c b/drivers/media/i2c/ov5693.c index 9e84468d920e..e1f9486d7f62 100644 --- a/drivers/media/i2c/ov5693.c +++ b/drivers/media/i2c/ov5693.c @@ -157,7 +157,7 @@ struct ov5693_device { struct gpio_desc *reset; struct gpio_desc *powerdown; struct regulator_bulk_data supplies[OV5693_NUM_SUPPLIES]; - struct clk *clk; + struct clk *xvclk; struct ov5693_mode { struct v4l2_rect crop; @@ -794,7 +794,7 @@ static void ov5693_sensor_powerdown(struct ov5693_device *ov5693) regulator_bulk_disable(OV5693_NUM_SUPPLIES, ov5693->supplies); - clk_disable_unprepare(ov5693->clk); + clk_disable_unprepare(ov5693->xvclk); } static int ov5693_sensor_powerup(struct ov5693_device *ov5693) @@ -804,7 +804,7 @@ static int ov5693_sensor_powerup(struct ov5693_device *ov5693) gpiod_set_value_cansleep(ov5693->reset, 1); gpiod_set_value_cansleep(ov5693->powerdown, 1); - ret = clk_prepare_enable(ov5693->clk); + ret = clk_prepare_enable(ov5693->xvclk); if (ret) { dev_err(ov5693->dev, "Failed to enable clk\n"); goto fail_power; @@ -1408,13 +1408,13 @@ static int ov5693_probe(struct i2c_client *client) v4l2_i2c_subdev_init(&ov5693->sd, client, &ov5693_ops); - ov5693->clk = devm_clk_get(&client->dev, "xvclk"); - if (IS_ERR(ov5693->clk)) { + ov5693->xvclk = devm_clk_get(&client->dev, "xvclk"); + if (IS_ERR(ov5693->xvclk)) { dev_err(&client->dev, "Error getting clock\n"); - return PTR_ERR(ov5693->clk); + return PTR_ERR(ov5693->xvclk); } - clk_rate = clk_get_rate(ov5693->clk); + clk_rate = clk_get_rate(ov5693->xvclk); if (clk_rate != OV5693_XVCLK_FREQ) dev_warn(&client->dev, "Found clk freq %u, expected %u\n", clk_rate, OV5693_XVCLK_FREQ);