Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1183300rwb; Tue, 27 Sep 2022 09:26:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5vUrbQgQOmkIrNfaMd0tBWU2WamZmvP+scDIPwEdLO77ThlK/bIYrHCxt+otFTFRJw0OHY X-Received: by 2002:a50:ed05:0:b0:456:d6fe:d800 with SMTP id j5-20020a50ed05000000b00456d6fed800mr21647484eds.101.1664295990049; Tue, 27 Sep 2022 09:26:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664295990; cv=none; d=google.com; s=arc-20160816; b=YNRLHDfsWitueRrpm2wlIcidMt8snd3tKDBzhuswJDKjwFr8/4Wdna/a81DARU8+A7 /R0nNtL9kzXbCJBal2Q4CqgLRetDCA3QgAB+KqNOHExqYGGMfFaoMVV7d6x1SjgLmXzH gCJhY0RmmLkWHqDafXkM16mEy0bZGq3glawP98nG5Sk/ASzHhoU+AHRAE90ezPl0HWQK pBzRH4aGRHEAfJNdJX6b8F/aZ/7WfTDjrkgXCZoM7kP2PDFTqWzZNGK0heg2Iy+B0sOx IBzMbCa70YRum5IuRYE1xOk9DEdq7L/nAl7ARzAwkwP+TpkFyA1q9eEXpxkgspKmDz1r ABiw== 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:from:date:dkim-signature; bh=p0YcyRlyNYPjC2yUE5rEWl59Rr2Y1jMOfDRIiIcxunI=; b=q9Dmr3G2RGW0S9pNNwCT/mGGmsnjvnB336hEfqQJm5m4lIFSAFnGnjsiH1vcLmjw2O SnS9LdqePe8QwYN6IzCNBojfQ2HsoPNxHsX0j5AqjF9BnjrLLIaVB8twmhLlUp4dcWgU /2fMVxvEWF7nYE9eQmVwU6ndObFkx21CxNfprPBmhH8r9AN3xKMqMJj3FBzIZCQm4PfY o5I0dTKHKtlXMz7zuF6phEj/4FhgXnpRGPntiqBBu0AMDCHogPsB+v+XxlSMzac/dxiG jyrgAEtuRs+XlX1WuRRNpytvBNBztX7TxDZwXryddOLlQGKrP98a3w5eajPTTK4ECQo0 Q03Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dkXzWr3t; 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=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 kq8-20020a170906abc800b0077083e6dde7si1566088ejb.183.2022.09.27.09.26.04; Tue, 27 Sep 2022 09:26:30 -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=@gmail.com header.s=20210112 header.b=dkXzWr3t; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231949AbiI0PxP (ORCPT + 99 others); Tue, 27 Sep 2022 11:53:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232140AbiI0Pww (ORCPT ); Tue, 27 Sep 2022 11:52:52 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 076771B95FC; Tue, 27 Sep 2022 08:52:20 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id z20so2580534plb.10; Tue, 27 Sep 2022 08:52:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=p0YcyRlyNYPjC2yUE5rEWl59Rr2Y1jMOfDRIiIcxunI=; b=dkXzWr3tMEIvoAgqt/Db887cORt7DqQtdkeWbrjlb2qlMwLXEQIaWpbGozZKdyLaVd R1DVx2Z+gxzrYamD8qxUGpiW/IRMrNfIFlXoRpGauQvLS/kH/R9DUuTlOd7zPHb6r0eU NjVb3OtdHd1JgAHb1XLwkrUCOTJnJS7Gt0dj7cl/qa8hapLXHk9JYq6TH3uEzU4OmKvM QWLpQVpba/hi7UWAhhHXbpDyoN7dOuIg2X0TdNiHkLlykXZNPwtGPG3mNgotflsdc+j+ TSUffuh88J0HJmoGS8JF9rlUMozrn9weVuQQYbinMqtddwgSa86uULTUVKHSRXKRpyt3 ZNKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=p0YcyRlyNYPjC2yUE5rEWl59Rr2Y1jMOfDRIiIcxunI=; b=Rg+sVcmJHbA3UYHF1qbfLjDP/vQeLHlPCDMTu5f6OS8vPlVUtHL754akHTcRkZY/lm Y6YEF4YpzPJvjfZLc6bdPWr9+Fi5sBCDG3EAC2Dh0bKrSoHHB+Ll06v6+iMdXuVNp9an bOGfIH9WaFHCf/OB2D0wPWblW+5mejTab26DQY/sfbqWY65evZ1jOrC7SAuM0X6BrcbW bMjqBIi9oeG+xPev/DknQLmC7/vU72UvwQd8A3FTBX8qAMbt8lfDkXm22pLcuYRUzYsL GKDukWE8FfW1LqwBqA3pfr5cGi2uk0E1aHGhHZeeMfOwqIzbjAYBnW6ynBymz4vIIXKZ lbXw== X-Gm-Message-State: ACrzQf2qS+3hdtuHXjYlGJ1n11wdefC3WCwoYRaaVWMObuERtRG8r6G1 kgE37R7WFEtC2wt5rsm7yns= X-Received: by 2002:a17:903:240b:b0:178:a475:6644 with SMTP id e11-20020a170903240b00b00178a4756644mr28086716plo.96.1664293940295; Tue, 27 Sep 2022 08:52:20 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:9739:ab49:3830:2cbb]) by smtp.gmail.com with ESMTPSA id d190-20020a6336c7000000b0041cd2417c66sm1770777pga.18.2022.09.27.08.52.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 08:52:19 -0700 (PDT) Date: Tue, 27 Sep 2022 08:52:15 -0700 From: Dmitry Torokhov To: Jerome Neanne Cc: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, nm@ti.com, kristo@kernel.org, krzysztof.kozlowski+dt@linaro.org, catalin.marinas@arm.com, will@kernel.org, lee@kernel.org, tony@atomide.com, vigneshr@ti.com, bjorn.andersson@linaro.org, shawnguo@kernel.org, geert+renesas@glider.be, dmitry.baryshkov@linaro.org, marcel.ziswiler@toradex.com, vkoul@kernel.org, biju.das.jz@bp.renesas.com, arnd@arndb.de, jeff@labundy.com, afd@ti.com, khilman@baylibre.com, narmstrong@baylibre.com, msp@baylibre.com, j-keerthy@ti.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH v5 5/6] Input: Add tps65219 interrupt driven powerbutton Message-ID: References: <20220927083520.15766-1-jneanne@baylibre.com> <20220927083520.15766-6-jneanne@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220927083520.15766-6-jneanne@baylibre.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Hi Jerome, On Tue, Sep 27, 2022 at 10:35:19AM +0200, Jerome Neanne wrote: > +static int tps65219_pb_probe(struct platform_device *pdev) > +{ > + struct tps65219 *tps = dev_get_drvdata(pdev->dev.parent); > + struct device *dev = &pdev->dev; > + struct tps65219_pwrbutton *pwr; > + struct input_dev *idev; > + int error; > + int push_irq; > + int release_irq; > + > + pwr = devm_kzalloc(dev, sizeof(*pwr), GFP_KERNEL); > + if (!pwr) > + return -ENOMEM; > + > + idev = devm_input_allocate_device(dev); > + if (!idev) > + return -ENOMEM; > + > + idev->name = pdev->name; > + snprintf(pwr->phys, sizeof(pwr->phys), "%s/input0", > + pdev->name); > + idev->phys = pwr->phys; > + idev->dev.parent = dev; As I mentioned in my previous email, this assignment is not needed given that devm_input_allocate_device() is used. Otherwise: Acked-by: Dmitry Torokhov Please feel free to merge through MFD tree. Thanks. -- Dmitry