Message ID | 20200815155237.467720-7-seanga2@gmail.com |
---|---|
State | Superseded |
Delegated to: | Jagannadha Sutradharudu Teki |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=ZzNfOIRy; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BTPxr3pbSz9sRK for <incoming@patchwork.ozlabs.org>; Sun, 16 Aug 2020 01:54:24 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9FE138221F; Sat, 15 Aug 2020 17:53:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="ZzNfOIRy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A49AF821FF; Sat, 15 Aug 2020 17:53:14 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 942B1821D3 for <u-boot@lists.denx.de>; Sat, 15 Aug 2020 17:53:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qt1-x842.google.com with SMTP id s16so9230092qtn.7 for <u-boot@lists.denx.de>; Sat, 15 Aug 2020 08:53:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8J6kNXan1JaB7h1w+xf0GxohsYTu2movhsVeph25smk=; b=ZzNfOIRyuaT99vQr6QMrRT/p6xKbzrUhjYUVMJkjF8u66PLNoxEK7Kb7WNm3Ynyg6x GEzvIljel7NQ1eTuwTJg01kN18KyVHKsNWtHNkBdW6waaVILpag5gqjtxnuvlNrCRlRv 5h9H6QckOwuQ8CFjpHgr2Rn40HP0qh5cV8JNswip2njCKGHPa3rXgX/n2ADktU2EnxD+ 3VkD4bEGeXwWKvIA/LCBVJvU8Db06cSTJGu7wskgh43g3bPK3NWjXv/nG1GyQQGefgid dMGX4gK5YJ7q9IXcj+WHqgALG5diTKquDis9g3vwv91xbmt0UbTMoBlCzE1+kVYmOzuB eroA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8J6kNXan1JaB7h1w+xf0GxohsYTu2movhsVeph25smk=; b=Po9vGyzo/kBQ6KLIrZW3Y7qNa3L5sVBMik2Yb0DYsk3HZxcyOKTtRVXImXhZNejJZW gCH1FBBjzMmTcEBkUsu7yk0/CyKWXDFapltEhG5unyJ5K0LhA6tbQJXSR2mdHBGa3NwB 1yMQaNzrr8W/72yjOmCVbDc49DtdN3JQeQVtV9+QfFVxtvrhkohffsQlFsiDkHbimoJ1 V5N2vLxdw9DC8vWgQkOSMxwafueYZYGXwLyCpCXIGAdoMSDJWoL2WzDSb4OxJPU7TTb5 mjyyKEi+JCl9Qlwh0m7Xmo+/dUFHX9LTOZAdEErxA5Z2UQVLd9HevO7bHkvsUyX4jNCg wPsw== X-Gm-Message-State: AOAM530UB6HBEVGvMevE+IZsQnRTrFac3odzZxR0zO/0kh9h3lGsre1l KEhncDRpe2+63mZF6oAvpv617Oo+ZNaUXKfv X-Google-Smtp-Source: ABdhPJzrvf88ppJ3kxM7z/MNR5s77JO8eYFkb/Xz0ryOstOxjx9vqUon2Q0B7JgqcY1TWlrMnjHQOw== X-Received: by 2002:ac8:4097:: with SMTP id p23mr6337646qtl.316.1597506790243; Sat, 15 Aug 2020 08:53:10 -0700 (PDT) Received: from godwin.fios-router.home (pool-108-51-35-162.washdc.fios.verizon.net. [108.51.35.162]) by smtp.gmail.com with ESMTPSA id v2sm13284117qte.25.2020.08.15.08.53.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Aug 2020 08:53:09 -0700 (PDT) From: Sean Anderson <seanga2@gmail.com> To: u-boot@lists.denx.de Cc: Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>, Rick Chen <rickchen36@gmail.com>, Bin Meng <bmeng.cn@gmail.com>, Sean Anderson <seanga2@gmail.com>, Anatolij Gustschin <agust@denx.de>, Ley Foon Tan <ley.foon.tan@intel.com>, Marek Vasut <marex@denx.de>, Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Subject: [PATCH v5 06/11] gpio: dw: Add a trailing underscore to generated name Date: Sat, 15 Aug 2020 11:52:32 -0400 Message-Id: <20200815155237.467720-7-seanga2@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200815155237.467720-1-seanga2@gmail.com> References: <20200815155237.467720-1-seanga2@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
riscv: Add FPIOA and GPIO support for Kendryte K210
|
expand
|
diff --git a/drivers/gpio/dwapb_gpio.c b/drivers/gpio/dwapb_gpio.c index bf324f5239..a52c9e18e3 100644 --- a/drivers/gpio/dwapb_gpio.c +++ b/drivers/gpio/dwapb_gpio.c @@ -186,7 +186,15 @@ static int gpio_dwapb_bind(struct udevice *dev) * Fall back to node name. This means accessing pins * via bank name won't work. */ - plat->name = ofnode_get_name(node); + char name[32]; + + snprintf(name, sizeof(name), "%s_", + ofnode_get_name(node)); + plat->name = strdup(name); + if (!plat->name) { + kfree(plat); + return -ENOMEM; + } } ret = device_bind_ofnode(dev, dev->driver, plat->name,