Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7D8DC64EC4 for ; Wed, 8 Mar 2023 10:25:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229497AbjCHKZA (ORCPT ); Wed, 8 Mar 2023 05:25:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbjCHKYt (ORCPT ); Wed, 8 Mar 2023 05:24:49 -0500 Received: from mail-ua1-x934.google.com (mail-ua1-x934.google.com [IPv6:2607:f8b0:4864:20::934]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE2E99AFE7 for ; Wed, 8 Mar 2023 02:24:34 -0800 (PST) Received: by mail-ua1-x934.google.com with SMTP id s13so10830163uac.8 for ; Wed, 08 Mar 2023 02:24:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678271074; 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=xusFC84LWq+hQQWH9l9KyGW8WLhpi+RLY/FC1FINVa8=; b=yADZFNqTg0Yk+jainBo7JMe0BgN79XEAO6bbEmFSSOjqeFsKaC6+YHr2hC3uZ2u733 LkaiLq+R2+J17UIXN5jx/PRcfVY3eaJA15lfrpH6jrKpo4ao681JB+JVDheUz87a6eXM i0bg9aConEDw1qxOUtH4Rfe3vJbP1/U1DCAMy0W803q5k1kq34XbI2LRqsQtzCTIgC0T QfIXmyW+GU+nnvF62HNGWjoLSbiekDvp/I7h/j8NC1360Sw/abkw8mivDCQoKQgELHm1 g3gycZ6nsoRXU/Ir/SZMMXHyEW+qVaqaGko/AdEXfOrpWqLqHF4dZciIu0HhwDmJqbih crTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678271074; 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=xusFC84LWq+hQQWH9l9KyGW8WLhpi+RLY/FC1FINVa8=; b=BNMmX7mYhpyd7GA6tATBAHNTcIGpIbI+rAmCZCPJvFnU/yKwHRWW3EJjVAUBqT3jxb /QcmkOK3s3wQS1LBtK1j5Hqc5Bhf56fpE/KJk+ymcRX08XDOHzwsyyKLMdoS/g34PUO+ 1UtFNYP4cwwBgpglc551JkD3219Svpmq8vL7dOtnpEb8iof1AmagdaHfjEu8lEHqvSdg 00Qks2Vry/eCGOQab6iNGlODS8G9/69WBtEJONdh/wfrrIuQB+brc8TWtSyPMTo1bMu6 ydkULACkyVEiOMEAcYSECqnEl2egSXIT9slguwuR7WxmLbM+SIx0rmhouKA0NbP7biDj GxJQ== X-Gm-Message-State: AO0yUKUCZYbx7RnRn4DO8Ji9QSxfhIeVBZ454NKvW3KlYt0udM0Snkab vbVN6stokllB4QgLCUUXw+6/88aU7MZb3URvH0Alhg== X-Google-Smtp-Source: AK7set+VBTrthx+dNIR5XybSUeHl/KtfuuGjtxKEnQRPYCM/rg+oNJJdyLT0yEE2LmVUHMnx8ZQpjjusjgXmAZt0vcc= X-Received: by 2002:ab0:4a12:0:b0:68b:b624:7b86 with SMTP id q18-20020ab04a12000000b0068bb6247b86mr11765061uae.2.1678271073786; Wed, 08 Mar 2023 02:24:33 -0800 (PST) MIME-Version: 1.0 References: <20230307165432.25484-1-afd@ti.com> <20230307165432.25484-3-afd@ti.com> In-Reply-To: <20230307165432.25484-3-afd@ti.com> From: Bartosz Golaszewski Date: Wed, 8 Mar 2023 11:24:22 +0100 Message-ID: Subject: Re: [PATCH 3/6] gpio: sch311x: Use devm_gpiochip_add_data() to simplify remove path To: Andrew Davis Cc: Peter Tyser , Andy Shevchenko , Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 7, 2023 at 5:54=E2=80=AFPM Andrew Davis wrote: > > Use devm version of gpiochip add function to handle removal for us. > > Signed-off-by: Andrew Davis > --- > drivers/gpio/gpio-sch311x.c | 25 ++----------------------- > 1 file changed, 2 insertions(+), 23 deletions(-) > Applied, thanks! Bart