Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp859089rwd; Tue, 16 May 2023 08:31:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7DAQL0dghLe4lO/Tdg0K7g/K3vWBRRqNg/zYIcQten2abX4cWCvwzRP27oW0AUrgyPbyBT X-Received: by 2002:a17:90a:8807:b0:249:842d:312f with SMTP id s7-20020a17090a880700b00249842d312fmr37438894pjn.4.1684251105834; Tue, 16 May 2023 08:31:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684251105; cv=none; d=google.com; s=arc-20160816; b=oV0ByzH+zHFUb3dYkFGVTj/tfeW944l137SUzOPe/JhRO35tFOpo8fKEn8rxd+wJ1+ 7gUPqoYXZCkDJkMfySu2JpVkBKMsbMkoImMR1jVfZmaHq7sSMGX1Z35K3IiO5sMgJie4 YC4uK5bJEo8EuRzM7WlDBAAKgoatyKQDobCdK9pPRTiac6Y5ztP3c2diZ8tPDpK56ngr J6lVtC0sW2Q+UXCMsuI7GBu9QUZdeP6OYimBwNhuQbjdKCkiaIRJWZ91I1momNOPP1u1 GMUSMb4j1dNoUVE6JfGE3oy9esU2XjglGluX0rQV+zrUGq1ORmxyNCq36C5B9XXbxzNF IQwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=6rAIJ1/IxMzmIB9RHD1AKzFTkg/d7qqPgWAWv+iLSek=; b=mvImifGoi4rD4Yzk2mhhugendwZEnLsh1kqKiM7jXvvXWpJLEKgr+Ush/1p4j7EsGE SVocxCvX4p3f9YJN6kEpXNz5dbzkkX43+Stjp1w68iplU9cgVilV/0/x7KKwcLXzen8l lu8ttodJWuFwCDMk1qnTL1QgD6or/wXKzNXsCGB4RThqb8biKtD4/kqXwY+8+qlSoWI9 9mQHPh7r/sRxyHHbXHviBPuccBbNufhR+55aufNldIyq3seBbghBHH7XtnIaZibZps2G Dbcmmm2v4y2wQcAaCMJyscI0bE/GpD+6Z7VMGadBAGDKkf/XtWrGtGe4+2wZUfBzo/vj uMcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=mMvxYgf8; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r5-20020a632b05000000b00524f08e1fdbsi19170142pgr.813.2023.05.16.08.31.32; Tue, 16 May 2023 08:31:45 -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=@ti.com header.s=ti-com-17Q1 header.b=mMvxYgf8; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233751AbjEPPYV (ORCPT + 99 others); Tue, 16 May 2023 11:24:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233455AbjEPPYU (ORCPT ); Tue, 16 May 2023 11:24:20 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ACBD7DBA; Tue, 16 May 2023 08:24:16 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 34GFOCIC034787; Tue, 16 May 2023 10:24:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1684250652; bh=6rAIJ1/IxMzmIB9RHD1AKzFTkg/d7qqPgWAWv+iLSek=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=mMvxYgf8dLFMj/+IuMVbrHTz1cAk6Mv6gatUkBL4QvgKhJaR51PWwb294m9x6Iwxp xg8f6ByGEyRM9bihBKrjzXP4YIZQczPoA4xMbIc/OUBrT9S4tNd6gXBRYhxZI+1NTB IFNfg4ufPo8lcxyGSOqqGuxTlw2fmU5HtjcqgjXs= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34GFOCCQ021591 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 16 May 2023 10:24:12 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 16 May 2023 10:24:12 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 16 May 2023 10:24:12 -0500 Received: from [10.250.35.184] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 34GFOBHR063958; Tue, 16 May 2023 10:24:11 -0500 Message-ID: <44a19ea6-a7e3-51bb-6631-b7514ef88219@ti.com> Date: Tue, 16 May 2023 10:24:11 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v3] gpio: pisosr: Use devm_gpiochip_add_data() to simplify remove path Content-Language: en-US To: CC: Peter Tyser , Andy Shevchenko , Linus Walleij , Bartosz Golaszewski , , References: <20230515174321.494714-1-afd@ti.com> From: Andrew Davis In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 5/15/23 1:34 PM, andy.shevchenko@gmail.com wrote: > 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. > No need sure, but I really think it looks cleaner to be explicit with the types here. If you feel strongly I can change it though. Andrew > static void pisosr_mutex_destroy(void *lock) > { > mutex_destroy(lock); > } >