Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1762771rwb; Thu, 17 Nov 2022 01:23:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf4aUrwQy5LYW2kJ4HrxfSiusNnMy9J/99vl/JN7S8km14dIUEmm11zpJN7UX+GTNQJ8EZgK X-Received: by 2002:a63:4746:0:b0:46e:beb0:9d2c with SMTP id w6-20020a634746000000b0046ebeb09d2cmr1361589pgk.117.1668677030408; Thu, 17 Nov 2022 01:23:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668677030; cv=none; d=google.com; s=arc-20160816; b=x0TvRO1t6LnXG+UMq8RHyJFPuD+Uck927ZfQjS4WvS/XPUDNcIr3S2eg4HHF/rp0pw JpXOty8YgTxgR1cJtuwrzIKfbyvhSf5h1uDG5i5nYri8REk0Foh9MCYBDtuSH/EjJ8we jt5VuuVmWSB//vTlKUfyqh+DQxAvN3iDRbSEEVMLj9TW4DPFt4M8fC37a7TJ5MtuipO6 4rGWoiT8fQYkZk15zBsPGAVr6laBiTKD8NAyyl5WS9ZP4qe8YzivdOPQmzcsA34y3/Je UnLhs216n3TAqarcWQ2gzpIDsq1CkjOJnGvmGq2zFtyDDX+OCIiRsTAmHNAV83v+G16I iMQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5zhSt35S7o2sfRbbzRgd2mNWx5Jr5hPu7WjLb8VLqDs=; b=ly40Rmm7N7+MSxQzfhjeoCNwzHDBcrT5QPSpAZyv1w+WWa9gbxzBx0Zq1QLKGYhog5 WUJh+P0PGGZIURya5QDomnETRmOAV5m8wx6jtLrZTO2Jnam9CO7MD1Isfd6zawKPLYXK 0XXe4G+LznGuf2y1iAmw0dj8xr+6bMtJep9AnKtZRg471/9SIpWC09jqKoFMJRfQqSJX xy7li7XmvD2eKSgZWjk1ooroK87Mpo3aZtQ70f6t3NvtBq2BdT172a9vLJOslW9zXy85 Du0sB35+6NnoB/ips/oO4eaaTgo1sWTthjIH0EAnY+SGzgqWU6swzfmToM9NI14X8NFL 7NAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SMYpW52G; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s11-20020a65584b000000b0047712cb3fe3si89777pgr.590.2022.11.17.01.23.39; Thu, 17 Nov 2022 01:23:50 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=SMYpW52G; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239666AbiKQJFV (ORCPT + 91 others); Thu, 17 Nov 2022 04:05:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239589AbiKQJFF (ORCPT ); Thu, 17 Nov 2022 04:05:05 -0500 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2B635A6E4 for ; Thu, 17 Nov 2022 01:05:03 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id f27so3505229eje.1 for ; Thu, 17 Nov 2022 01:05:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=5zhSt35S7o2sfRbbzRgd2mNWx5Jr5hPu7WjLb8VLqDs=; b=SMYpW52Gep2/BpihE2T9vuFlUgkUOux+5U+YRc1GVgDqJfoxxfGoMiyxKMGoq/weON isuKI+IiKh5nNbyJMdVfYOHfXIuM9vTJiLHCJ/R9F3/HaB9J82FdnKsfg0+EIxKSLqLO EAyUNsj7P2nZo8cccxdNXx6TntrfAZBWSEhnfbyOqAn2ob7J6GV7iLhdfMIQyx9iaUfN nhnUCJOb+ezCgzNO8Paldo1NrGQnwwta6lxkSaTNobtOQoR6uY9pFevnu7VlHfwseJd0 M2KpxVaXTmFpTwv8+KGvkwk/2oTVVDl2v54TSTIwrEcrkIzddTqU3Hllohy5C93G+DrG ORCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5zhSt35S7o2sfRbbzRgd2mNWx5Jr5hPu7WjLb8VLqDs=; b=oZweOXyuPqzSRlDRNPFwLxBCCTXVKg2qZpcWuyIaoHbR8bnNmjI8JGxRnXag7cpLtR TAqBPzSt2yCc+VTMXDhCfhqxOiiO5+fyFBZSzGblvdUSqLuYLBdvIOmY2ZNwzGBzkD+s nRTFEfBZXUR3BbxbDzKuKQQKJZJ1tC1IyssDB011hZh4UERb2INrGg7ZxJQPsi1deUyT S7Cbvpm/+QWTfKpd2ng3G7LTlWfjDtPTUFxjUK3mJxP2iJ/Po0tV0JuBWd+GKhwfjelx Be4krABaCDZYFG5W9mPUhM0zCSHiT/UgjyI83GHZA+vJwqqkCXmAdqopCP+Yd9Ugw3Xk cDRA== X-Gm-Message-State: ANoB5pkqxBaKbTrAEuOW8vtj9wy4ADZJLddJ/868dttoevVsSAFbE0ON XgHojIUv8j3HDGfDP0q0noXmsoCERnHRDvqnsitcmg== X-Received: by 2002:a17:906:7c44:b0:7b2:7096:6c2 with SMTP id g4-20020a1709067c4400b007b2709606c2mr1387844ejp.526.1668675902339; Thu, 17 Nov 2022 01:05:02 -0800 (PST) MIME-Version: 1.0 References: <20221115221145.2550572-1-dmitry.torokhov@gmail.com> In-Reply-To: <20221115221145.2550572-1-dmitry.torokhov@gmail.com> From: Linus Walleij Date: Thu, 17 Nov 2022 10:04:50 +0100 Message-ID: Subject: Re: [PATCH 1/4] media: i2c: s5k6a3: switch to using gpiod API To: Dmitry Torokhov Cc: Mauro Carvalho Chehab , Sylwester Nawrocki , Andrzej Hajda , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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 autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 15, 2022 at 11:11 PM Dmitry Torokhov wrote: > This patch switches the driver away from legacy gpio/of_gpio API to > gpiod API, and removes one of the last uses of of_get_gpio_flags(). > > Signed-off-by: Dmitry Torokhov Reviewed-by: Linus Walleij > - sensor->gpio_reset = -EINVAL; > - sensor->clock = ERR_PTR(-EINVAL); Looks unrelated but makes sense. > sensor->dev = dev; > > sensor->clock = devm_clk_get(sensor->dev, S5K6A3_CLK_NAME); Given that it is initialized unconditionally two lines down :P Yours, Linus Walleij