From patchwork Wed Jun 15 15:22:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 2087 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 1FDBF3F03E for ; Wed, 15 Jun 2022 17:23:05 +0200 (CEST) Received: by mail-ed1-f71.google.com with SMTP id x15-20020a05640226cf00b004318eab9feasf8835647edd.12 for ; Wed, 15 Jun 2022 08:23:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655306585; cv=pass; d=google.com; s=arc-20160816; b=FcIXnJo2t3ZG15x4A7Q96d49ijNApYqdiPHpYInmR4wmrglb5jqXLVds4EtBKhdGwr T5axaQycjMrDLXFUtUoT1GChpnrhtZb35ZNPc4M3JN9UjhHYmjuSPyzRXay7lWYAENYS 7NStyQ6YEpsVZYKxpccog8c75YhirzzW2FmzgDH9FCNi+wed6dzl4lMdfJ2G+vMYQo8h K0cJEtyMArtR6+MYhFSgO42kRcnRFlZdXPvvcs6gbioKa1lrPGBI0/70G3hzh4ANZOBz yeOpDRO+YM3EMPnlWYV3ochYQFWtdnMItqEh0nOpZT+LgX1pLJaqvv0gGO18v3o+6Dvi KT/g== 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=iv9i/K0puYmLrQQgwuqz2DPe29DcLIeFdhDD8UJkPNo=; b=VTIoOu95gZ2UA7mAreL3AZfdJhpGpSaZ8aU6HPhZ7CJzBj4AEsJpk0PBuEbUMW2vt0 9GVaG7zlzpxBnmowe/fDWDFnd0za6mvQ2IOuhbV/JzkpLvZcCR0m3PlysGr+/NGgPxzk 5UqITmuEqIL3C0hQcod4ydUTgCLAOr0u9V8Rv7Al68SCzlQZYCu99GtVyqJjjbOyETob hDXGeaqlQxYF9jBJGFA2WiRqvW0tGJJazFYXkDy6Mwsy8+EvN97U6XQ9Ks7DxSMqbC/3 sxxnrOdZNgymy9jZKy/N02ULrJ6UkfWTmXHozLYhm6qEAZE+QJ3EneR9s8pOXKIH/BpX RATg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=J0TWk0x4; 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=iv9i/K0puYmLrQQgwuqz2DPe29DcLIeFdhDD8UJkPNo=; b=KdWPqOZqq6NRdnjoN1SEUSGhS5Zpom6EGBGsJH+074sLzGPSufyXDzfmABeQa3uq1H AFFYSLl51z2KfLlj87uiB/YBz5oeOTWftlPI1pXB/a3YiRe8yi4e38FNLDN5IzoZJj5G k4yocReqTZhrUCPH1+kOVBFkqIoVqPV1amD3Y= 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=iv9i/K0puYmLrQQgwuqz2DPe29DcLIeFdhDD8UJkPNo=; b=5usMx0+1u9bRJooBpfNjJugZeY8KJYgk/3UODHZ1HF2uz1/nyblQROW67MNmrCpOlU 88aivS1rDV3suQ2DW3Sc+3nRRNh9IMcZP7kWdEpZrxD/CWNEua5XX/AXj1gxGURcwxsa 6VDoJ7CJwhUg2k1t5Bf40gursOknVEZoJPqvpFcUWTid4RZtbL1reWZzsn10fsj0OOms qhk2JE/rVmGwlBtpWskjAGlCSpHVUDdQzZq4eqjK5f6voV2gDC846Mb0X+zWBLZ58sAF HkmqYy/NLEfnJmpvnek1ExG+rGfUj+fkmA3oUT6ilkUMv+bBWcKX0e5ZpesO3d3GlDRc MVZw== X-Gm-Message-State: AJIora95Ue2c6Hr55mf5mhuPjjdYIU6YrZlK+QWOHVggk0jfiXRDJwlZ I2eZ/gOvt3vUfQf/Xxs6/zZDJYJX X-Google-Smtp-Source: AGRyM1vKxNf9NhoiphkjxqhZ2tTsI5iQwLycDARLd0hyF/UVUAAkpFNDz/tWH6r2MoIoeZbmLgdVIA== X-Received: by 2002:a17:906:2245:b0:715:7c81:e39d with SMTP id 5-20020a170906224500b007157c81e39dmr337179ejr.262.1655306584914; Wed, 15 Jun 2022 08:23:04 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:35d0:b0:434:fe11:7447 with SMTP id z16-20020a05640235d000b00434fe117447ls43473edc.3.gmail; Wed, 15 Jun 2022 08:23:04 -0700 (PDT) X-Received: by 2002:aa7:d586:0:b0:433:5467:8ebf with SMTP id r6-20020aa7d586000000b0043354678ebfmr335960edq.214.1655306583846; Wed, 15 Jun 2022 08:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655306583; cv=none; d=google.com; s=arc-20160816; b=AzUIufHufGYWoIiROauzeKKPmvukBSmKhY7LcpEaVQGLrBGesI+nJcPH2yASRgpVy8 om2dq3PaI1fh/9HH0ddqAst7ivksvfGR6u9ohn8VhQYOHZhvOx7vN2xlRyd1jNTjuifj jOnt3vKSh0NWFKNycmdnPzNHKSu2BIhn12HB/nS9kYFMIQKB9tx2K15UsDrcrHW8h2yQ GbauC7SrHy99z+Pu0nQHm3ivopIJ6NEzUEVwsJpSdYYVh6MhdlCdswb3Bf+PDER2b/m6 Ddm0H8zaaN5P2iFWIcLai22a+3kcxkDjwsVCG0Ne40AgNfF91LVLVN8lX1d0x7qCJrsU NA4Q== 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=mbhraybs4BrIz6d4796cwXXFW6lfNPQ37w8o2Zpee1o=; b=IeLhyTZ5CokYi6xjBEPODRQ3ySeDyuYywBzzv30oRCVASdEFaZ+dSjwELX9h64wVSG +dOQ3ispdP2Dt3rvsYiIVzR/dmWktQIv8J1MoWNSZuuXXgRXGyM9hzLQjXeqmGTrfcdB TPISy9R4d9dpI0x4NH3oZHMIYj04nSuhVHcrAcj5G6LkCGNQXnYVClGQCY4pbQjybiod EOB94zJyGpl5x3tb2CpzilmGQEH+JBA7grgIo0wOmMvZOjx0qg6iP3Ps+BhScmr+gf28 j2zn0UGleUo9bNNIsE1aq3QnST8JOc9KsEdpmyW7BdV6WCFMI07H7aM6mUxWwj9k1A/i UqvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=J0TWk0x4; 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 k14-20020a17090632ce00b006e84f415ddasor4778705ejk.47.2022.06.15.08.23.03 for (Google Transport Security); Wed, 15 Jun 2022 08:23:03 -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:a17:906:fcd1:b0:70a:a374:905c with SMTP id qx17-20020a170906fcd100b0070aa374905cmr274662ejb.583.1655306583465; Wed, 15 Jun 2022 08:23:03 -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.23.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jun 2022 08:23:03 -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 6/7] media: ov5693: rename ov5693_check_hwcfg into ov5693_get_hwcfg Date: Wed, 15 Jun 2022 17:22:53 +0200 Message-Id: <20220615152254.794909-7-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=J0TWk0x4; 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: , Function ov5693_check_hwcfg don't only check the hw configuration but also get the hw configuration. Is better better to rename this into ov5693_get_hwcfg Signed-off-by: Tommaso Merciai Reviewed-by: Dario Binacchi --- drivers/media/i2c/ov5693.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/ov5693.c b/drivers/media/i2c/ov5693.c index d5a934ace597..273caef467fe 100644 --- a/drivers/media/i2c/ov5693.c +++ b/drivers/media/i2c/ov5693.c @@ -1339,7 +1339,7 @@ static int ov5693_get_regulators(struct ov5693_device *ov5693) ov5693->supplies); } -static int ov5693_check_hwcfg(struct ov5693_device *ov5693) +static int ov5693_get_hwcfg(struct ov5693_device *ov5693) { struct fwnode_handle *fwnode = dev_fwnode(ov5693->dev); struct v4l2_fwnode_endpoint bus_cfg = { @@ -1431,7 +1431,7 @@ static int ov5693_probe(struct i2c_client *client) ov5693->client = client; ov5693->dev = &client->dev; - ret = ov5693_check_hwcfg(ov5693); + ret = ov5693_get_hwcfg(ov5693); if (ret) return ret;