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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E1CD1C433EF for ; Mon, 25 Jul 2022 11:57:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E0ADF841B7; Mon, 25 Jul 2022 13:56:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="OYUzXu0h"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6F0AF841B2; Mon, 25 Jul 2022 13:56:37 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8D218841C3 for ; Mon, 25 Jul 2022 13:56:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org 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 dfw.source.kernel.org (Postfix) with ESMTPS id 5AFE36101E; Mon, 25 Jul 2022 11:56:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22487C341D1; Mon, 25 Jul 2022 11:56:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658750187; bh=+q+2kDofw3SoJg2ip3iH8Ao2QF0HHkIhNAtNUYxi894=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OYUzXu0htd1Me48jzaZlIgMC1x+jOLHRskzXQJW7mcw/iQJ7poHewFyphaBir8Y1p HyxQBX5yPTJtV+3GCZoO44EQPef/6nQGEiALzejQKqo9qZK5NlFfyd5HVNYkqxFMD6 hVKbqj8lizzqk6WcWnuLh2Xtm3j9K65DvULivvU9GdzMdO65/0KxHa8EhWKnkejvAS FqQGcnXXQe+u7xx1SRUOUKLOgXHspDwUPdVbq/HydWDhcsJrmlzmFdFs3llKeLhTXz 4ewRxkpTQj+S7Wh03XTgkkGM9bWgMBoP2l1jEb+3Y64vNUx71dKYc1HrchBBu/DgcS 3ru/LFCrzUTZw== Received: by pali.im (Postfix) id EF99F2BA5; Mon, 25 Jul 2022 13:56:25 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Stefan Roese Cc: Marek Behun , Simon Glass , u-boot@lists.denx.de Subject: [PATCH 7/8] gpio: mvebu_gpio: Set bank name to mvebu%d Date: Mon, 25 Jul 2022 13:56:14 +0200 Message-Id: <20220725115615.420-8-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220725115615.420-1-pali@kernel.org> References: <20220725115615.420-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Currently bank name is just one alphabetical letter. Change it to mvebu and number. Signed-off-by: Pali Rohár --- drivers/gpio/mvebu_gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/mvebu_gpio.c b/drivers/gpio/mvebu_gpio.c index 55ed685f70f8..f706a6dfa4fe 100644 --- a/drivers/gpio/mvebu_gpio.c +++ b/drivers/gpio/mvebu_gpio.c @@ -23,7 +23,7 @@ struct mvebu_gpio_regs { struct mvebu_gpio_priv { struct mvebu_gpio_regs *regs; - char name[2]; + char name[sizeof("mvebuX_")]; }; static int mvebu_gpio_direction_input(struct udevice *dev, unsigned int gpio) @@ -93,7 +93,7 @@ static int mvebu_gpio_probe(struct udevice *dev) priv->regs = dev_read_addr_ptr(dev); uc_priv->gpio_count = dev_read_u32_default(dev, "ngpios", MVEBU_GPIOS_PER_BANK); - priv->name[0] = 'A' + dev_seq(dev); + sprintf(priv->name, "mvebu%d_", dev_seq(dev)); uc_priv->bank_name = priv->name; return 0; -- 2.20.1