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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DFEAC678D5 for ; Tue, 7 Mar 2023 17:31:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231435AbjCGRbx (ORCPT ); Tue, 7 Mar 2023 12:31:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231453AbjCGRb2 (ORCPT ); Tue, 7 Mar 2023 12:31:28 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52B3EA1004 for ; Tue, 7 Mar 2023 09:26:46 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8DB98B819A3 for ; Tue, 7 Mar 2023 17:26:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF328C4339B; Tue, 7 Mar 2023 17:26:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1678210004; bh=6FdbwitFT4Z/YaZMWi2O7vyNEsas6NAbZPUUzefVbB0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HJc5YZQqCQRJUMgZg+Z7ntOhKAdowUUAGJtW9+b6tEaCyi9TPkbQERvlX+/+cjv3h JbZEfxPUQ7O/b6oI3L9vo5vis2cv+/6jsc4/5xxOj2/TBwmW8WZakFEsb/nKXl8Mr6 SxNtqgdXFMrv7+rJD8W9XP/T0V7RQPDSRsJeRWaI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Clark Wang , Haibo Chen , Linus Walleij , Bartosz Golaszewski , Sasha Levin Subject: [PATCH 6.2 0402/1001] gpio: vf610: connect GPIO label to dev name Date: Tue, 7 Mar 2023 17:52:54 +0100 Message-Id: <20230307170038.764580370@linuxfoundation.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230307170022.094103862@linuxfoundation.org> References: <20230307170022.094103862@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Haibo Chen [ Upstream commit 6f8ecb7f85f441eb7d78ba2a4df45ee8a821934e ] Current GPIO label is fixed, so can't distinguish different GPIO controllers through labels. Use dev name instead. Fixes: 7f2691a19627 ("gpio: vf610: add gpiolib/IRQ chip driver for Vybrid") Signed-off-by: Clark Wang Signed-off-by: Haibo Chen Reviewed-by: Linus Walleij Signed-off-by: Bartosz Golaszewski Signed-off-by: Sasha Levin --- drivers/gpio/gpio-vf610.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c index 9033db00c360d..d3f3a69d49077 100644 --- a/drivers/gpio/gpio-vf610.c +++ b/drivers/gpio/gpio-vf610.c @@ -317,7 +317,7 @@ static int vf610_gpio_probe(struct platform_device *pdev) gc = &port->gc; gc->parent = dev; - gc->label = "vf610-gpio"; + gc->label = dev_name(dev); gc->ngpio = VF610_GPIO_PER_PORT; gc->base = of_alias_get_id(np, "gpio") * VF610_GPIO_PER_PORT; -- 2.39.2