From mboxrd@z Thu Jan 1 00:00:00 1970 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 42AD8847E for ; Fri, 10 Mar 2023 13:47:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5141C433D2; Fri, 10 Mar 2023 13:47:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1678456044; bh=yMMIurnAERMYRDUtQ3ZgGPACMxBWZbUyep+xySGss7I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a9Drj4Jj9QhB+RWwQSsZZCdguSm8pVyMEMaNnr19qa96UPxFIpm2+8F86VNd5Omlb mhL4nceGrw1oHz8C2biTlNlCrDsLdHps25iZGXebvChMIem5EBCHrroVo/2qvH9DIK DkuxtcisBjalaQQCX/AQUgqQoBxGANwYJ2rqJq3s= 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 4.14 061/193] gpio: vf610: connect GPIO label to dev name Date: Fri, 10 Mar 2023 14:37:23 +0100 Message-Id: <20230310133713.062295601@linuxfoundation.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230310133710.926811681@linuxfoundation.org> References: <20230310133710.926811681@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 91d6966c3d29b..457ee42023f41 100644 --- a/drivers/gpio/gpio-vf610.c +++ b/drivers/gpio/gpio-vf610.c @@ -281,7 +281,7 @@ static int vf610_gpio_probe(struct platform_device *pdev) gc = &port->gc; gc->of_node = np; 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