Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1393819pxj; Fri, 21 May 2021 13:09:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmLIeaLojXzsaevB/kBj8o7BWD9vY6VifzGVdNwrNBUaJMv2tnvU1QMhzTxQy2VLxK/B1e X-Received: by 2002:a02:ba08:: with SMTP id z8mr6887265jan.74.1621627744189; Fri, 21 May 2021 13:09:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621627744; cv=none; d=google.com; s=arc-20160816; b=ScH/bEkOIotOEyJIVZk8T5QA9nmBgeU4dR6ZtgACmpdf44pWICPWm8ppJWSXHnlDLI 7ljyabv1XcJlwE41F/FCRckdAhbNHmNWWj4GZDPG/Mt7S/EaRXxWKd6FHpC27Rwd9niP HC1IRqD3wfNcLYONXbbNm3njElKKP0T93stmO1z/Xi2ARyXcnm1xByb5VRCV/QUKvY7h Ab1Z46vDQkRydtv2PWu9Rh3xQATypZMj7iJqWXvXPqNO5HCiM1F9oSvn3AbivBU1UX80 sDMBCImf9WnyxbUbfO3kwwBkC7jJDljIaI6rDYvhbo9sRdjEfdiiVu6NziwfnxlJDyUV +W+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=hc1c1PZJhL/A4HLXBtSJVqGzGuuyzG49SjvibWoejWI=; b=mwfpnaM99zZfzgLKwyM1xUYTOJEB2EX2z+cU+p3Q6gjwJiIVvC9Wid5pdFOZ5GOBNg DiHUJ4PPIZShRnMUqKQBaU07KyS5NHpmPFFQcVsd7WwNuimJsAvJ+QM5EiOT17O144lv R8TjtOUMT90p5V5uf/JnHrDFSiDUowRKu21IJHNiPq8mUdyeSEQYXgJyy5u2Pb/BfNB2 T0vM+PU7RRTIW2WIQM76ksFy2awhULQ90wTOXdyAwgnpxbiOHVUpGNwWbiNFPPeF6Lvd 0ZxeLKXCSLNceYbi3DLEx4acVZYAYwutVqZTjFrMaeaTcAYNbi7NBLlauAvLExPFmEZj vpfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=R+QmkaDB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o8si6931675ilu.133.2021.05.21.13.08.51; Fri, 21 May 2021 13:09:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=R+QmkaDB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230101AbhEUIM1 (ORCPT + 99 others); Fri, 21 May 2021 04:12:27 -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-kernel@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