Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3049871iog; Mon, 27 Jun 2022 08:08:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u+JuyCkpSbOEIP6+a5HXmSOpF4GpHZTyHI6Rr9aRLd/afpOd91iYrOrp1anp4ZwwECWy9q X-Received: by 2002:a17:902:d701:b0:16a:2206:9ba8 with SMTP id w1-20020a170902d70100b0016a22069ba8mr15000787ply.168.1656342522384; Mon, 27 Jun 2022 08:08:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656342522; cv=none; d=google.com; s=arc-20160816; b=vkf8m91AjC4uWiziUMscTiSdUTW4/uSJXBidfW6IRnSE4pTqwndfk1WDJZ3szh5SPM 3n8VycAxZiiYSTpsXrmBY7DSoOjhkh4j4/PR5EPjpTiCf710VJk+DtjNQ5X28J/+og0y XKY9L6KV/3OF1i1SjGImVwOof1UchvwJGo5U2mu9I9WUE4QIbIaFp/NL2ao8H/nXFVUa WQpVxPYiBkVq4DnbKs3hTw5y5Tp2D5vNNy9ErgbIeeYFiiIH6hqdyrtkg53WU9ZbNwKj jhE51bq69wHxHwq2mSqV6IfvDJbQT4ptN7wnjZPW1OelVxXETo9VOfOg3YoER7XSEpXu Hx1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=l2qHBG28ZF/0BqgZtfUZ2wwyoD54f6fad9bi6YF6qP8=; b=d4MZ66d4h2QQGqbr/3li3pGFuUc40Ozt7vPeqNjDeGxJJpg/P6+DYOEVVflejFZw1F l38oiyJNkp+SnWnEu4viowouDWhZECfJIHpndjvyx2SxcjugNM31XZNs87gTM9UIVgCq QGFWbYnNrfk2pTPUeK+s5uqjQHGeU1sVBoywGzfqZBMcOynqFIOxSDQf4o1aD6/fbOs4 jtPJlOWtiwTnURpxyaA4GPHLC+0G1MDg1dK1AVFMjH//5pbUyBzox27+ltLvm9IkPri0 nmVHafF0NEcVUnZj1b3Cc4UWICQN2o1/a1w+Kidiqe5czTU01X20rJbsufvIJufq/OQh S5/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@amarulasolutions.com header.s=google header.b=KkiLJR+d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d6-20020a056a0010c600b005251d1a6eeesi15450036pfu.202.2022.06.27.08.08.28; Mon, 27 Jun 2022 08:08:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@amarulasolutions.com header.s=google header.b=KkiLJR+d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237612AbiF0PFM (ORCPT + 99 others); Mon, 27 Jun 2022 11:05:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237613AbiF0PFE (ORCPT ); Mon, 27 Jun 2022 11:05:04 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B882317593 for ; Mon, 27 Jun 2022 08:05:02 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id m6-20020a05600c3b0600b003a0489f412cso1547203wms.1 for ; Mon, 27 Jun 2022 08:05:02 -0700 (PDT) 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:content-transfer-encoding; bh=l2qHBG28ZF/0BqgZtfUZ2wwyoD54f6fad9bi6YF6qP8=; b=KkiLJR+dI/sfPPQ2s1lOQsqvvaQpAmiK08gsGDaD57ph/EMv5+h9GmRBeL8UEl/18+ ou22mjauhcxTNohAl3306Hb6yBAONh50aZiBb1VyWgF89BO6v480wSJUML9ym+h4Q7LC y3wM9rytEgubnTsw8dXfS34e8QVJAGGhoIDBc= 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:content-transfer-encoding; bh=l2qHBG28ZF/0BqgZtfUZ2wwyoD54f6fad9bi6YF6qP8=; b=ElgQP5MvQJ/1yprwI29H3j4qBDqlZ/OhO5jf+NfsPTMc3Dhp2t88mav5tn8fbJVrsc AOSuJDjos+NMgIU+j0sm9A6g8ankt6/zXFLWpMTWtT3IEJ4+u3PVrMcnAXNl7XaGusBv oDVdcKWjcFdN9AAaUe5buHtHkjlgRcdk6tmk5sdMDc+pXOJ0jhHpiu9wZ/Qwv7P0cyQX 3WtRtR1Ko94yXm2aAszk8JhGW+kUF/WB0jY9d35orAkh4zWSvlWQotzJdTGBYTmq2lDr IjwGdqGn7+zLayzxxi89F8GvbzdRaGW9yY0ygmxaaHeqqPo4xRAnn5IPLZoQ/xmAcvUN PIIQ== X-Gm-Message-State: AJIora8J3itewmskrUYnSLizjKSGsADx8X9ZVPoth5xdZgKBq+EQqP8t o5J6TXXEhYUzJuCCM8cgnjrNvg== X-Received: by 2002:a05:600c:a03:b0:39e:4f0c:938c with SMTP id z3-20020a05600c0a0300b0039e4f0c938cmr15384218wmp.145.1656342301269; Mon, 27 Jun 2022 08:05:01 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i.station (net-188-217-58-216.cust.vodafonedsl.it. [188.217.58.216]) by smtp.gmail.com with ESMTPSA id d18-20020adfe852000000b0021ba3d1f2a0sm10581250wrn.48.2022.06.27.08.05.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 08:05:00 -0700 (PDT) From: Tommaso Merciai Cc: linuxfancy@googlegroups.com, linux-amarula@amarulasolutions.com, quentin.schulz@theobroma-systems.com, Tommaso Merciai , Daniel Scally , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/7] media: ov5693: rename clk into xvclk Date: Mon, 27 Jun 2022 17:04:49 +0200 Message-Id: <20220627150453.220292-4-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220627150453.220292-1-tommaso.merciai@amarulasolutions.com> References: <20220627150453.220292-1-tommaso.merciai@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rename clk pdata pointer into xvclk (system clock input). Same for clk_rate into xvclk_rate. This is more explicit Signed-off-by: Tommaso Merciai --- drivers/media/i2c/ov5693.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/media/i2c/ov5693.c b/drivers/media/i2c/ov5693.c index 9e84468d920e..d2adc5513a21 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; @@ -1390,7 +1390,7 @@ static int ov5693_check_hwcfg(struct ov5693_device *ov5693) static int ov5693_probe(struct i2c_client *client) { struct ov5693_device *ov5693; - u32 clk_rate; + u32 xvclk_rate; int ret = 0; ov5693 = devm_kzalloc(&client->dev, sizeof(*ov5693), GFP_KERNEL); @@ -1408,16 +1408,16 @@ 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); - if (clk_rate != OV5693_XVCLK_FREQ) + xvclk_rate = clk_get_rate(ov5693->xvclk); + if (xvclk_rate != OV5693_XVCLK_FREQ) dev_warn(&client->dev, "Found clk freq %u, expected %u\n", - clk_rate, OV5693_XVCLK_FREQ); + xvclk_rate, OV5693_XVCLK_FREQ); ret = ov5693_configure_gpios(ov5693); if (ret) -- 2.25.1