Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1009399rwd; Thu, 15 Jun 2023 05:19:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6u2Xlu0ZduMhggImMg5UEO9aQBhSpD3mC/FtU7eOX+9TqSDvF4gvO32/GbBzt3V1js30j/ X-Received: by 2002:a05:6a20:2451:b0:107:35ed:28b5 with SMTP id t17-20020a056a20245100b0010735ed28b5mr5552532pzc.2.1686831564125; Thu, 15 Jun 2023 05:19:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686831564; cv=none; d=google.com; s=arc-20160816; b=skhB/c4PrfUXtoGJJvJBxgqByN/mHpmJhYYzRQ0LK5mq8++fkN3JsHRKayrQSxrTaf ufxTm+Wm4421F7i7xlEC2GZioxLFnwaxc6ZTcO1Gok5KLy/uokN5kezAPtb0MR0zlYJz 4r2w73d26Lf1/DVmVXwtbmIaFC1c+3Ozv5+/eKE2Stj/rABrmKwYs4wH9L0qELuYN+cY IDIkr6yxL1SvaG6OCy967fmU+gYF6TrzZpdVztULZ+QdYpMCWdhcxVXVWGRbgTb2Qogb n5mZ+ie0wzfqvJ4bggaKyaKi59tltoRQQez+2zf3Glr7N+wdNQe1Uik1ylM4npC5r00y bdzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=cH7f8dO8LwOHgZYF4+NV54A72XOxsYhU4Qi3RqmzeSk=; b=Gpo31JPmwV2bezTtzLq8PjbpcLROiSpcxg+MaHUYn0zZFW071yyenVfhgJu/WxXVWj fD1oQ2ace3Nsig6Hap5+ND8gClBW0sd/QGuLPzUnyQF+9060JzkVA58WHAhcGfM2BO+5 80xhE92l/iEla2yE93eB9F/nmsxE+9rY9NWdWpghcfv29aMOWL9NC9HfxEq3DifDqdCW tvNQ079HscpflFTdnpYbpS2oUKi6YDjBlDed5NYsmxwWRR1Tt+axIGOT8zn4Ha1JSmqe sbLN0FSfngPjWW6mZ6nr1JQO8S4B0xm+EM7veotOWvyIjD69xLsuYWhmXZskNlnP8D4S LDeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=gmhlTz89; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r13-20020a63440d000000b0053f287c32besi9662920pga.206.2023.06.15.05.19.12; Thu, 15 Jun 2023 05:19:24 -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=pass header.i=@gmail.com header.s=20221208 header.b=gmhlTz89; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245389AbjFOMKn (ORCPT + 99 others); Thu, 15 Jun 2023 08:10:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239330AbjFOMKi (ORCPT ); Thu, 15 Jun 2023 08:10:38 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D4A2193; Thu, 15 Jun 2023 05:10:37 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-519608ddbf7so2120310a12.2; Thu, 15 Jun 2023 05:10:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686831035; x=1689423035; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=cH7f8dO8LwOHgZYF4+NV54A72XOxsYhU4Qi3RqmzeSk=; b=gmhlTz899JCDPr9vM9nGyyH2xJA55W/37lD/M8JdrmhIkThOMi38v5sT7lT2PRme0J 7fHBSMITz6FUbinDm5VMiDuDelynRQebLt+AbxWc3wbh89aCC3bhyXJbOBxm5FHgOvyT RKj7/MjQ5xkCW5atwZ7zTc/uAxvuncU6tCs8v1K2//CHIoSuE/oM/9gncqLM+6X5DBd3 Qpw9gT1a1hHxitAuEusoHnd//8EEubwCKa8530eUDFjYb7otYL7QWoLk4W4Hvy2RJMTG UfhA1hHGq7iVGzDuMfriPMK6yFkCwywNTs186S51mMT4tPDScZLc9qvTZXdsXU1D3aWd tw6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686831035; x=1689423035; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=cH7f8dO8LwOHgZYF4+NV54A72XOxsYhU4Qi3RqmzeSk=; b=i7sxh9VcVZSDQJnr8pz9kCQ/gFcI/7GkRT70QD2owsYXXEGVJtkHSjpYLu6ZXjFeno CSb9tPvt+zCqIVcZ+c5nQYjpnMm/cf8FPP8hf4+HBfUCy05TnLaHjR/tEw7tyVPdlO5L 0AZK3PJl6po8c3+4FlIPfFG0eePZ3As+vcp5brKh+FVYjq1Qpm7I0VyA2tStB2REJNKr tGj9ErdbSPZ8MSjro7+a5gMDi6grEymzUGc3PzaNmg+nlLFOCfvFOYEVr6nvYO0cm2AE NAoO9PrjXMLsYNv5fVd68rtSBgTHq7kBfX1atEg6qWCLai/CL/yrnxhZRl3Ecqxih+Lo qkBQ== X-Gm-Message-State: AC+VfDwsQWR0i/XcyCg1+VvYr57HDmCVtMF3G9Vmbi3E2yg8N69bsFBS qieOU6GuLsd51Bmz6MUZy7Y= X-Received: by 2002:a05:6402:88e:b0:514:964c:4c42 with SMTP id e14-20020a056402088e00b00514964c4c42mr11810013edy.8.1686831035402; Thu, 15 Jun 2023 05:10:35 -0700 (PDT) Received: from ?IPv6:2003:f6:ef05:8700:f946:69a3:7954:9ee0? (p200300f6ef058700f94669a379549ee0.dip0.t-ipconnect.de. [2003:f6:ef05:8700:f946:69a3:7954:9ee0]) by smtp.gmail.com with ESMTPSA id i16-20020aa7c9d0000000b0050d83a39e6fsm8869638edt.4.2023.06.15.05.10.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jun 2023 05:10:35 -0700 (PDT) Message-ID: <55a46a8cffef60758f0136f389909e307fa1ade4.camel@gmail.com> Subject: Re: [PATCH] iio: adc: ad7192: Simplify using devm_clk_get_optional_enabled() From: Nuno =?ISO-8859-1?Q?S=E1?= To: Christophe JAILLET , Lars-Peter Clausen , Michael Hennerich , Alexandru Tachici , Jonathan Cameron Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-iio@vger.kernel.org Date: Thu, 15 Jun 2023 14:12:57 +0200 In-Reply-To: <7dbe973905f1fdae5d2f5ae5a3b01dd1d6a9925b.1686774340.git.christophe.jaillet@wanadoo.fr> References: <7dbe973905f1fdae5d2f5ae5a3b01dd1d6a9925b.1686774340.git.christophe.jaillet@wanadoo.fr> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.48.3 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 T24gV2VkLCAyMDIzLTA2LTE0IGF0IDIyOjI2ICswMjAwLCBDaHJpc3RvcGhlIEpBSUxMRVQgd3Jv dGU6Cj4gSWYgc3QtPm1jbGsgaXMgbm90IE5VTEwsIHRoZW4gc3QtPmNsb2NrX3NlbCBpcyBlaXRo ZXIgQUQ3MTkyX0NMS19FWFRfTUNMSzIKPiBvciBBRDcxOTJfQ0xLX0VYVF9NQ0xLMV8yLgo+IAo+ IFNvIGRldm1fY2xrX2dldF9vcHRpb25hbF9lbmFibGVkKCkgY2FuIGJlIHVzZWQgaW5zdGVhZCBv ZiBoYW5kIHdyaXRpbmcgaXQuCj4gVGhpcyBzYXZlcyBzb21lIGxpbmUgb2YgY29kZS4KPiAKPiBT aWduZWQtb2ZmLWJ5OiBDaHJpc3RvcGhlIEpBSUxMRVQgPGNocmlzdG9waGUuamFpbGxldEB3YW5h ZG9vLmZyPgo+IC0tLQoKUmV2aWV3ZWQtYnk6IE51bm8gU2EgPG51bm8uc2FAYW5hbG9nLmNvbT4K Cj4gwqBkcml2ZXJzL2lpby9hZGMvYWQ3MTkyLmMgfCAxNiArLS0tLS0tLS0tLS0tLS0tCj4gwqAx IGZpbGUgY2hhbmdlZCwgMSBpbnNlcnRpb24oKyksIDE1IGRlbGV0aW9ucygtKQo+IAo+IGRpZmYg LS1naXQgYS9kcml2ZXJzL2lpby9hZGMvYWQ3MTkyLmMgYi9kcml2ZXJzL2lpby9hZGMvYWQ3MTky LmMKPiBpbmRleCA4Njg1ZTBiNThhODMuLjVkY2IyNTdhZDc1NCAxMDA2NDQKPiAtLS0gYS9kcml2 ZXJzL2lpby9hZGMvYWQ3MTkyLmMKPiArKysgYi9kcml2ZXJzL2lpby9hZGMv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