Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp892656rdg; Wed, 11 Oct 2023 08:19:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEtR3RrJXyzhhAeKydV4SaFM4tr0wf+OEGjzQ1CRvCAz4Hxu07WpQq5uvgCMOCx5QySGlgJ X-Received: by 2002:a05:6a21:998c:b0:161:76a4:4f79 with SMTP id ve12-20020a056a21998c00b0016176a44f79mr23282299pzb.23.1697037563061; Wed, 11 Oct 2023 08:19:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697037563; cv=none; d=google.com; s=arc-20160816; b=j0WLUa+rJAuuqhfb2sXDGv2AIu/NhW1bC1pObLrvNvRBN4zvDf3AO85blFFBhYkSrs RHhHPc+I7S1EbFp0H0c+lycfcts+ffloLzkeNGt+t/BL/6QXZA772MTXr+JBtEwZIRM6 DVXQ36Z1ni4MPHvu7Oq1UFwS+eseG3LwziPnOYKEzogqITq2yE4Xv4hNlR8eNUQ2K2eQ 7EqIpPzBBI6q2Q3r3BA/O11TUtvXaXinNYJgaDmfSpQ73sEJeA4p+yn1+nARRgTLagXV grejZtZRpdMsCdhKPoyvxwDt+9T2D6QqtNdxa9230VdiGZHShYDDAra1Hyp03SUrue29 HR/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=GAcI5kh28MnQYwTA+kkn4Gx501jVpVqJkK13LuyHfzE=; fh=aon7p+4raq2TIR1rBiVDV8OMIfXQwwnzA78YA6SW4B4=; b=xl8Owu/DTLt+a9Tt0U4Qfk34G1SXLvfQ1jyvdbZQBCH14dQOS+evs+BMGQigOuHC3e 7JlnsaDI0o6unQryC12cbVfYSDrLcRzCE+WKj65Ayq9uA/3taaCfF3p2hiGDm8i7dtbQ fMSzQGHlaAiQccPdmM+EtVafQZ6padlrxirv+2IoPH4IU6Jer0XtGM/RBG7+c+AVTtbg R/8nvR/sfNZEKgfcWih+SHrh1Dat4h59yA6qgzNBxjJrLhlt2mDbMJbAIHNNNOUJivvD Eo94cGubaAH/iwIGJXRhAwGmDb5Kyu/r1WY2XnBxJGDdlAZCuVjUUlKet6q/EngMUqWq R+AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WIKRx31+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id k4-20020a6555c4000000b00578c914490bsi15097588pgs.494.2023.10.11.08.19.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 08:19:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WIKRx31+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C789A81D4773; Wed, 11 Oct 2023 08:19:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232673AbjJKPTB (ORCPT + 99 others); Wed, 11 Oct 2023 11:19:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230265AbjJKPS7 (ORCPT ); Wed, 11 Oct 2023 11:18:59 -0400 Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B91194; Wed, 11 Oct 2023 08:18:58 -0700 (PDT) Received: by mail-qk1-x731.google.com with SMTP id af79cd13be357-77574c6cab0so494494385a.3; Wed, 11 Oct 2023 08:18:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697037537; x=1697642337; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=GAcI5kh28MnQYwTA+kkn4Gx501jVpVqJkK13LuyHfzE=; b=WIKRx31+SZsTjloGBjXw/paj9PGpnyX33dhOpzLUOyghi1R9VYOqgHSLytBxyVhCUm NdAKOnKKsUDvTnqUptJrhi0Ga2n3WM7IxI+UbvuhqYd0QWHKuBcyXZRGZu8cK8QmG9cK bMQDyLg0UDx4w/JtCMkJ741N1MK6dEMgtQ0aVRcNhIWogiVOq+914lUPaL694HjkYHid MaQA9TQqhkLOeePQl8EyNBlijKoS98XLzQKVaykNc8SLrY3aXTFkr+29zxIKER7JMgUL 3wYR8KtfieCGmVHUBnp3vnsYNxW1y6b00hu7ghkjiNYJURmjvZGBJoooKBqBqTyKZBu1 6HYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697037537; x=1697642337; h=content-transfer-encoding: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=GAcI5kh28MnQYwTA+kkn4Gx501jVpVqJkK13LuyHfzE=; b=WTllKIHr1JimSbIiPUY8aZi+Wroof+iv9AayIF1bvHtAtCecTPm59qdvQgRmeeute+ iLpkmGYqVRxSkLFxxav6I4A47kstD8M5BxAyWa/k4D6UrJTn0XdCLj74A1V2LdyHZnWU gtaC4tkG982IUA9YmHy/eMRrcOHVtJAtiPsiQCOcb1QZEYJJZBMjDZ1paYtRR4jBJuOC Ok0S1O/5xeXSSfaIXUUvVeKNsGClFVEUz0JU408/gpw3VYQxbetMiJo2LM9FQ+8BwyMb 1nYjTNEiaiq3kO2jW78SvYsNDROpDmKUqN64G+jvnKVAqw23iWn90Xb3z9dy1zGZLmWi S53g== X-Gm-Message-State: AOJu0YwuYsiyeerlKTJghKhI0XGhxjtMAnkmrHxm1U/BdoSPOdpdB2Sx TS3f1KC7ADpT8oqmhndXylkb5wXH5Bujgtsa07FIp7BcRzkfJA== X-Received: by 2002:a05:6214:2b84:b0:656:49a3:21ae with SMTP id kr4-20020a0562142b8400b0065649a321aemr22859568qvb.15.1697037537354; Wed, 11 Oct 2023 08:18:57 -0700 (PDT) MIME-Version: 1.0 References: <20231011130204.52265-1-brgl@bgdev.pl> <20231011130204.52265-4-brgl@bgdev.pl> In-Reply-To: From: Andy Shevchenko Date: Wed, 11 Oct 2023 18:18:19 +0300 Message-ID: Subject: Re: [PATCH 3/3] i2c: mux: gpio: don't fiddle with GPIOLIB internals To: Peter Rosin Cc: Bartosz Golaszewski , Linus Walleij , Andy Shevchenko , Peter Korsgaard , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 11 Oct 2023 08:19:04 -0700 (PDT) On Wed, Oct 11, 2023 at 5:59=E2=80=AFPM Peter Rosin wrote= : > 2023-10-11 at 15:02, Bartosz Golaszewski wrote: > > Use the relevant API functions to retrieve the address of the > > underlying struct device instead of accessing GPIOLIB private structure= s > > manually. > Very nice to see that wart gone! The only small question I have > is if these helpers are needed elsewhere, or if a more "direct" > gpiod_to_device() would have been sufficient? Same concern is here. But I'm fine with the code. --=20 With Best Regards, Andy Shevchenko