From patchwork Thu Mar 5 18:53:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1249820 X-Patchwork-Delegate: uboot@andestech.com Return-Path: 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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) 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=o4UM/hM/; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 48YKff5fpkz9sPF for ; Fri, 6 Mar 2020 05:54:18 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1A5B4812B8; Thu, 5 Mar 2020 19:53:54 +0100 (CET) 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="o4UM/hM/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E729D81295; Thu, 5 Mar 2020 19:53:48 +0100 (CET) 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-qv1-xf43.google.com (mail-qv1-xf43.google.com [IPv6:2607:f8b0:4864:20::f43]) (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 2D17581269 for ; Thu, 5 Mar 2020 19:53:45 +0100 (CET) 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-qv1-xf43.google.com with SMTP id r15so2909351qve.3 for ; Thu, 05 Mar 2020 10:53:45 -0800 (PST) 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=WFVnrGCDmB45SuChKu9giHFIOcIiMmZ9KNcc/eh2W3A=; b=o4UM/hM/OoPxm8g0MM9mlH7wyzHnWl94Nh5xSXjgpItKaVNpng/Wd9oqtyxxz06Sy6 45ePWJbkkqmga0UmLMi4bKgTOsoZjqhhxIQ9bmbqSbEHGiGKGOnOeSikiG9QagwhyINd sEfEGjDQScL0B3WQEw+hyiCXExVu5ZHO2d4rGP7Rzx2pQOf6drTYpBcgnOz6Poz7ULim F7M1ckCHy+FDF9qgaRAFI+xFUR4JUNA0Us/eZfQkdg3ulLHYM2/tlXdeG/SxGmaKFzrB WQllvbJPwawv0dG9zVJttKP/LmoPRdpsfvMnrgAw7Etnr1vqKl13H2POXeS5aAcrmYVW 3nSQ== 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=WFVnrGCDmB45SuChKu9giHFIOcIiMmZ9KNcc/eh2W3A=; b=d0YohSCxTXwOrt7kVLUWEmnCB0yujKYhot5UzcfKmtjxXEcwFA/S9jc9PFiY6EHILu uHqGTAxomBuhAakpnVg8dd6Th17rl2+NGbwYC6n2r8KB5yW1/dXvYWBI6mmKljXt/ldc 7urtwTzC5KuFa7byKGyWQbKvYQyfJ4b4YWu5F3cbwoLh5NP/3BMF7WLdz6rFwbeiUA4s rG3DFQD1VMh5wvIVkvCSW/pOQRWs+cp2nnPppc53egk60IHgWUi1JfNajQkUeSM0nXOG qqdvfDg+pUt4lKNoMLdiRhqgVzYYPsNZV/GCRlRutXMAVsXlD1Cy7M0Sr0tBZnjVVB0V 4rnQ== X-Gm-Message-State: ANhLgQ2GWNig8gFs4HMvfGHAix9wva8KDcYLiU2TgAZ2+yS2QvfW6AJ2 LiDMM4OjC+UutKv71CS9GzKumTTi X-Google-Smtp-Source: ADFU+vtDilpI1xMlqqo5jQfy4XUs3Q5H7q6fYbdpHa2FnaGFcaq6SfuuI1cBOTfgQl6XjDkyqxPvBQ== X-Received: by 2002:a05:6214:10c2:: with SMTP id r2mr126098qvs.83.1583434423786; Thu, 05 Mar 2020 10:53:43 -0800 (PST) Received: from localhost.localdomain ([75.102.135.197]) by smtp.gmail.com with ESMTPSA id o16sm16263379qke.35.2020.03.05.10.53.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 10:53:43 -0800 (PST) From: Sean Anderson To: u-boot@lists.denx.de Cc: Simon Glass , Tom Rini , Sean Anderson , Bin Meng Subject: [PATCH v1 3/8] gpio: dw: Fix warnings about casting int to pointer Date: Thu, 5 Mar 2020 13:53:23 -0500 Message-Id: <20200305185328.951011-4-seanga2@gmail.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200305185328.951011-1-seanga2@gmail.com> References: <20200305185328.951011-1-seanga2@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.102.2 at phobos.denx.de X-Virus-Status: Clean Change the type of gpio_dwabp_platdata.base from fdt_addr_t to a void pointer, since we pass it to readl. Signed-off-by: Sean Anderson Reviewed-by: Bin Meng --- This patch was previously submitted as part of https://patchwork.ozlabs.org/project/uboot/list/?series=161576 drivers/gpio/dwapb_gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/dwapb_gpio.c b/drivers/gpio/dwapb_gpio.c index e3439eebb5..56dcad36f0 100644 --- a/drivers/gpio/dwapb_gpio.c +++ b/drivers/gpio/dwapb_gpio.c @@ -38,7 +38,7 @@ struct gpio_dwapb_platdata { const char *name; int bank; int pins; - fdt_addr_t base; + void __iomem *base; }; static int dwapb_gpio_direction_input(struct udevice *dev, unsigned pin) @@ -174,7 +174,7 @@ static int gpio_dwapb_bind(struct udevice *dev) if (!plat) return -ENOMEM; - plat->base = base; + plat->base = (void *)base; plat->bank = bank; plat->pins = ofnode_read_u32_default(node, "snps,nr-gpios", 0);