Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2453212rwd; Mon, 15 May 2023 11:54:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/DDqAIKhGJkVbFg3raJ/pAERk/mybha42eFcV6oHdkF/5i3bYAYifYnoN6jiVk8uuF/7U X-Received: by 2002:a17:903:110f:b0:1a2:8c7e:f310 with SMTP id n15-20020a170903110f00b001a28c7ef310mr42608453plh.35.1684176876985; Mon, 15 May 2023 11:54:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684176876; cv=none; d=google.com; s=arc-20160816; b=qUPGuQHBForh8YMWpSuplSGCrorcmBVaTm2dW/KN5PP9ptcePvSzrRovZ3z+pdO/Q1 UP3L2vpbb4QxoLPQb8D+Jz2qnVdG8liSKxM057nX8FzF+vqz7f3YV/+CnvdqceGJ+xo2 H+qxvkPGnYyRkFqPWLJAp7shKAF5vb8eq23ZTLMgsqTgiGgj+aRze1qtMCJYxN5/UFhu bG79wf9QpEv0b9LQ3enqBZwqOjW9//+Wj/O1yWlS9Ut2f0Wf1hpuV3kMJYdwhfL3Wdi7 nHeztFrvt3kQYhHfj/vSwRQgFBw8sfHgGKj/A08LzxHUEg2T6tOUeVRHzaq8cWUEHcU/ Z0Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from; bh=BwyNLmn7JTbEcdFeCJ3IxsU/G2opnoqsFRALKcR2JD4=; b=PUXNdixofgzf/dKOFtp/n69KRTwX3wJghm6RSIaz/9Sw/1Vh2qShG9OJKbrxOv9LWg DkpZAlcpPOaeHWltMwwlHKEFZ9kCngoY2m7BDSZ2bMo9i9EmoiKwTGL4KlPtOdWQkWgl PvkmBPe+YXINkeAYISxICg7hQj3wC/QnHxNs1DfoEm1jUBgC0FnmA5pIiEYy74zsJtr4 WxJVAUSAlJkb8ZmYNQHaW4PzeolL407ZoOPdm4ydTa6cgTbADvwIyIAmFV2C73SUqrm4 SmaB2Mq8uoRxxK+fLO3Bal63BTeT8iV/Drxxk/J/I6pL84HQjAYCjnmhF3d8KJgW3jnw B6HQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 ay8-20020a1709028b8800b001ac482e25a0si16034503plb.374.2023.05.15.11.54.21; Mon, 15 May 2023 11:54:36 -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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243627AbjEOSen (ORCPT + 99 others); Mon, 15 May 2023 14:34:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243540AbjEOSem (ORCPT ); Mon, 15 May 2023 14:34:42 -0400 Received: from fgw23-7.mail.saunalahti.fi (fgw23-7.mail.saunalahti.fi [62.142.5.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF86D14E45 for ; Mon, 15 May 2023 11:34:40 -0700 (PDT) Received: from localhost (88-113-26-95.elisa-laajakaista.fi [88.113.26.95]) by fgw23.mail.saunalahti.fi (Halon) with ESMTP id 250eb140-f34f-11ed-b972-005056bdfda7; Mon, 15 May 2023 21:34:37 +0300 (EEST) From: andy.shevchenko@gmail.com Date: Mon, 15 May 2023 21:34:36 +0300 To: Andrew Davis Cc: Peter Tyser , Andy Shevchenko , Linus Walleij , Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] gpio: pisosr: Use devm_gpiochip_add_data() to simplify remove path Message-ID: References: <20230515174321.494714-1-afd@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230515174321.494714-1-afd@ti.com> X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, May 15, 2023 at 12:43:21PM -0500, Andrew Davis kirjoitti: > Use devm version of gpiochip add function to handle removal for us. > > While here update copyright and module author. ... > +static void pisosr_mutex_destroy(void *data) > +{ > + struct mutex *lock = data; > + > + mutex_destroy(lock); > +} No need to cast void * explicitly. static void pisosr_mutex_destroy(void *lock) { mutex_destroy(lock); } -- With Best Regards, Andy Shevchenko