From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C5FDC433B4 for ; Fri, 21 May 2021 08:11:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 73D27611AD for ; Fri, 21 May 2021 08:11:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236647AbhEUIMZ (ORCPT ); Fri, 21 May 2021 04:12:25 -0400 Received: from ssl.serverraum.org ([176.9.125.105]:34061 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230146AbhEUIMF (ORCPT ); Fri, 21 May 2021 04:12:05 -0400 Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id D4EC62224D; Fri, 21 May 2021 10:10:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1621584639; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hc1c1PZJhL/A4HLXBtSJVqGzGuuyzG49SjvibWoejWI=; b=R+QmkaDBsEZcE056vYscpCKqBmMceb75TLzdAGDvGClvWLvk7XbIKgvLwAmg++HxMuEG5z 3C4PAHM7gnXJVvRHZlOX2GQ2wVO1m/Q0HKSL/vGVu3f1r6C++4ErFhZl2uXnoDx9/w2jbR GrOVbzy6dhqFMlyrwm4A1B52LbqYj+w= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 21 May 2021 10:10:39 +0200 From: Michael Walle To: Matti Vaittinen Cc: Matti Vaittinen , Linus Walleij , Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-power@fi.rohmeurope.com Subject: Re: [PATCH v2 2/3] gpio: gpio-regmap: Use devm_add_action() In-Reply-To: References: User-Agent: Roundcube Webmail/1.4.11 Message-ID: <12bb40f022be0378ed493e7ad33122b0@walle.cc> X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Am 2021-05-21 08:28, schrieb Matti Vaittinen: > Slightly simplify the devm_gpio_regmap_register() by using the > devm_add_action(). Hm, nice, but what bothers me a bit is that no other subsystem does it that way, eg. hwmon/hwmon.c or watchdog/watchdog_core.c. They also store just one pointer, thus could be simplified in the same way. What I don't know is if devm_add_action() was intended to be used this way. So I can't say much for this patch ;) -michael