Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp1032148lqo; Thu, 9 May 2024 02:42:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXfbp36Lu6jTK4jdPw+NTpNHgx/LWUIAteTxk+ismrUx2cE9+Oy+GlzJ+TZsVfDHmmgJW52dP9yVQYB6B5/FUAz2JmrBk2dQpZDtzifAA== X-Google-Smtp-Source: AGHT+IGPGNdUA6+wYF+V6Z5nu+l9EhE82Jx3lrdTa3W60pgmV3wnWsD3RWVWTReXxlGgYzSDnFdw X-Received: by 2002:a05:620a:4692:b0:790:686f:f683 with SMTP id af79cd13be357-792b27459b7mr685509785a.58.1715247763889; Thu, 09 May 2024 02:42:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715247763; cv=pass; d=google.com; s=arc-20160816; b=ff+0Adb/+B5y3aFTobIopGFPEcdvPRjdjSdn/2pUQbnhrbKqioZLOvQJfaV2SdxcA9 tzgFW3gmFKJ01lPdKbDGcKpgv+1ysIuz7QaJDj4N/ycX9qfcsn7i4QB3zevoPeX4rqBJ JRAQ3USJS7OWMGkFWGEEBYpFpK5ojTKTaqRBeFfM7tbHFW4PS9pji2Zp/3JJ29F37Txk wdVrkn9d5uw7+bt3k7MzVr2hecRG3Gki9NPLG+9OzecnVKB5XgZQ0UuwmTW/cAXVhPao 2IHeJ+6DiiW+zT1l+daOkNtcNYy6WDKuviYj5Bg75RC7RLgCfk9htHka0on5Xbz+ce0I 7zEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Kg/OU25QBfm5oC86+Wd39/nPNsD0JnCoNU2Ey/QJcAQ=; fh=LqXStzZQsDG+l2vX5We/itClVRnXBfVNNYGf8Qhoiw8=; b=Y/XQDHHbdirJAJ4+9bxPEFTqAZ8KaA2oq/AFMMRUrFuuIkvonWg18Cc+KKFM3n9ABA FObef4qmEhj6uWq29CMSgU7r3t2JyMwph7onkyG15ffGeC7VEJXfOspf7SWmnD0VYCjq 18le0erdbGBcQYlPdpCbMV341hjc/8Dsui6KC9kQh8C3npA+SsJVWAfAxdCYKtaO0/1L O4toaYTMYNSSL3xxxrvWRb/nveBiMlApmXa9ooGXqqNmbmhrlYEywVRuiNlrfNLoaoKN vfeUu7eDogEgTGTkxnMJCt5GJ3PdJv7IMCc8cL/SacRI5gF2RAxG1ytSnH5SYodAYHpP xsTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a6PwzGFC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-174364-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174364-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf30abd9si91705885a.289.2024.05.09.02.42.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 02:42:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174364-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a6PwzGFC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-174364-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174364-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 89BC91C20F61 for ; Thu, 9 May 2024 09:42:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B38C414B090; Thu, 9 May 2024 09:42:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="a6PwzGFC" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE40614A635; Thu, 9 May 2024 09:42:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715247737; cv=none; b=oqUCwVvIkCrlQnbJX1UXLtLiZh3Ac+9mtryUm7+gJZWUI1E/SnyvikcbvWWhehKPJXaIXdWSiCJvHO85J+pJCsxDGmd8HNaCJuT0cucwQHsIqzhH8csCINBYF8Clmcb1RnMGmDaGX2j/yvDmLz0oW3XsXpuLyjtVwqVsKkEgEKI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715247737; c=relaxed/simple; bh=tD9tOrxNFpXsZZQ8xg7bbuScb8DB8HBoElxo9MJcKcM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=q3xrt13kac4ExOniKZ6f9O1ST2KwkqP1RDy/dS2+yTOVqMSa0VLmfKHvlzxD1AkkF+T6HL5UvgCmwxeeTJDpD1zGi291EohbjMOlm4kL5VE76QI+KzPgxsCEaIGHz02G2J4fULvoxoV3NI2hEJacruc8VhRsGS62OTvv4xb9qzY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=a6PwzGFC; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39C6EC116B1; Thu, 9 May 2024 09:42:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715247737; bh=tD9tOrxNFpXsZZQ8xg7bbuScb8DB8HBoElxo9MJcKcM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=a6PwzGFC6N9hqs5FWprlYfL77L/nHkAa5ydiN7306iC2CV5mIXdsQyaBbmsYSFnxD tzMoezKcWVbYlrGIwmLow7C2IdIBKb0iO8CyvZrWNLDBlvgm4X3VoZ0mAdwaR2w/Ao 5iOA7jHPH6BLGMN0IfCM+mNdP5W+D79mHHBwGFo3/Zl/3oh96Kc/xSDpBq/d/tR+S+ gBxQzvqxd7Aum8cwyfdsacipu60LByxlVgkWasNZJMseao3qGyluvVww/URYqIAJ6L pNnwU8lP9cAWnxq/6pofOzj+vdW64smUwoUleufiSMqwB/l9RoT6RBPkc4gO2UFfvX gs1uqaKwQLaGg== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1s50I8-000000001bK-3n8n; Thu, 09 May 2024 11:42:21 +0200 Date: Thu, 9 May 2024 11:42:20 +0200 From: Johan Hovold To: Andy Shevchenko Cc: Johan Hovold , Lee Jones , Mark Brown , Linus Walleij , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Das Srinagesh , Satya Priya , Stephen Boyd , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH 11/13] mfd: pm8008: rework driver Message-ID: References: <20240506150830.23709-1-johan+linaro@kernel.org> <20240506150830.23709-12-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, May 06, 2024 at 10:18:58PM +0300, Andy Shevchenko wrote: > Mon, May 06, 2024 at 05:08:28PM +0200, Johan Hovold kirjoitti: > > +static void devm_irq_domain_fwnode_release(void *res) > > +{ > > > + struct fwnode_handle *fwnode = res; > > Unneeded line, can be > > static void devm_irq_domain_fwnode_release(void *fwnode) > > > + irq_domain_free_fwnode(fwnode); > > +} I think I prefer it this way for clarity and for type safety in the unlikely even that the argument to irq_domain_free_fwnode() would ever change. > > + name = devm_kasprintf(dev, GFP_KERNEL, "%pOF-internal", dev->of_node); > > You are using fwnode for IRQ domain and IRQ domain core uses fwnode, why OF here? > > name = devm_kasprintf(dev, GFP_KERNEL, "%pfw-internal", dev_fwnode(dev)); This driver only support OF so why bother. Johan