Message ID | 20210807082134.16457-1-peng.fan@oss.nxp.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp1037675jap; Sat, 7 Aug 2021 00:47:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwklQhKaJY125XNkZWHkc6TMK/jOkTKgNDRSH+32NmgcWJE33AJ/WZTrsNxH9v7hutoMUva X-Received: by 2002:a17:906:8751:: with SMTP id hj17mr13137772ejb.511.1628322436697; Sat, 07 Aug 2021 00:47:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1628322436; cv=pass; d=google.com; s=arc-20160816; b=ISdAPWW+DDyJF8STZPXZfDABhr0HKe5cUiSQrHbDKN6nDjuH0Z/XETvYtPp83n0QRI +C7pAli1kWQ80HRz97jIGM9wd5QXXQM5cCNDbkhFkQkNGb4fSW2XKaVzNXyF4Li0ogb+ weEAhQOERNhlIKy94hUsdNTtrhW6neUlLuIZ0Pbh6lQs7ShDDmB+54hMZeUDFJp71GBJ 9JjwFI9FP4HU3ZU7b4RG0nYMbF49GWlgsnpeJYdyGvjOTkKMZCrYV4y7BtfCrPAXu3vQ Y97qYL7NOt7Mzdr2Q2jRnBTNCIeMg5xQb08NAOoD0qaJBUnCRvlEHCkQOgGMPHJJ+syH rJew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:message-id:date:subject:cc:to:from :dkim-signature; bh=N60zkPnN768BR/3Pa8EJjPzsJ7XF5F68vCElqg5ch48=; b=tfplR4TJxvFcLeu+V2dKzT/ReZVz8wYaccgm9h4oV402KCLaHbeMl9rSJhdlO5FilO Tu+m2AJpmnXnyDTBxteNB2Ek2u8ZKb0Rc9/6A8D6VN10Z8tOEvXdYc/WLuO+1H79HbcM JJenLLvRBcokvcbPEkG7e6aWTOfRuUug/G0etlFjLgEXCVS7z4BYZtMWwDT5W6dZKYB5 R5HZYwrKy41p/7jmiLGZK5kacvRBQVFgF1z3SqngPpoYKAmO8Ar0SvnyTr/nZyWM1iO7 HkAFQCxlN2o2eUaNw7gRPOzycejAH5iu8Db55Hmbe7gYrih9tGtrKjV3HXxC+ZPfb7V7 Cp4g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b="F/XAPA2s"; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id zg24si11578699ejb.485.2021.08.07.00.47.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Aug 2021 00:47:16 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b="F/XAPA2s"; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C200582000; Sat, 7 Aug 2021 09:47:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="F/XAPA2s"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 85C9482C47; Sat, 7 Aug 2021 09:47:06 +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=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2062d.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1b::62d]) (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 9511A81BCA for <u-boot@lists.denx.de>; Sat, 7 Aug 2021 09:47:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peng.fan@oss.nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PG1Q4LZFwv4XgEJYK9jzz6+e5925gFenztuPFtTKrKHB0G405kfkgZYm4jJvmCIqehFzNvmzNyiA1ydiMZE7T1ZKVwyTrG6ymTokgEmnAEaq/2tTz/otdjIDVqG3wAyLS+KfhWm8FmxMJ4IDQiuYX5awQ5N9vZV1TOckQfcmri/s6ZMdEjRDyRfqBidczxE70l3yMlD7pkLKwz0016g7shW2/NOBgXuCLFAQrQlQmJSZgMZrVeiNhGFMeeb0vUTSuvBPqYkLLuNa0s+GB3/8j9ZfVs2o6WcpOTUbd3sF2w7zDUJNEk23RGRGlLvoJ7QrmZxisATRpSyBz0r24Esl+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=N60zkPnN768BR/3Pa8EJjPzsJ7XF5F68vCElqg5ch48=; b=R4zjBJb6YgoB8mDPA4NsFv/2LG5KS/TR9ybo3NbnRblljjmIysVHGR4DGY+SpJxoz8V/2SDntLEzIdoKIvBuI6TEV8AdueWawacdaZvvzCS0fJhjT+zosCOEFOiyBfRSu5WGzJbbKjBEbud+f/n1Oop7GqdtjlRAdf4bo2emgWc8hfvdcGz6TLw2bM+1qSE5so+vBhGuaQ85rYQkyAUDv1g6pkhk6B+UmMnIFZpss6+B5+U/9fB9tyh82+bGtzT3Am95KlwsDJjuO/QSlNV3txnKHAJ9pWjHOlUv+7HjJhHB7TULg1z58zPqBY3OAWQGoYMEzo+4l47CIZHkZa1aHw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=N60zkPnN768BR/3Pa8EJjPzsJ7XF5F68vCElqg5ch48=; b=F/XAPA2s19tjtQ29M35Ef6YLTbHPIHsrgygRqa0lnlfkCqGLs1wTfBsDUGNnH6cz00wP3Ih+94cVcQ8A6MDhZZ42X7gfItW/iRbccHjXwx65MZs8Q78yd9QowhypmdQFEVKMG28Fm1oTr7Md+j+WNl3VncXqaGT+PexlWR34gpY= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none; denx.de; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB4636.eurprd04.prod.outlook.com (2603:10a6:5:2e::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15; Sat, 7 Aug 2021 07:46:59 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c445:d742:eb76:86dd]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c445:d742:eb76:86dd%9]) with mapi id 15.20.4394.019; Sat, 7 Aug 2021 07:46:59 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: sbabic@denx.de, festevam@gmail.com Cc: u-boot@lists.denx.de, uboot-imx@nxp.com, Peng Fan <peng.fan@nxp.com> Subject: [PATCH] imx: cmd: use struct cmd_tbl Date: Sat, 7 Aug 2021 16:21:34 +0800 Message-Id: <20210807082134.16457-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0134.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::14) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SG2PR01CA0134.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15 via Frontend Transport; Sat, 7 Aug 2021 07:46:57 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6f0649f6-11d8-444a-6522-08d959778979 X-MS-TrafficTypeDiagnostic: DB7PR04MB4636: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DB7PR04MB4636DA228FD2A40335179710C9F49@DB7PR04MB4636.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:1079; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yimf8iOntKMMvK1MStlA4Z3w7oyHXVU4+HJKt+LUevORF2YgL7lFi2eIu7s9LUEfZTtK1ZQjvqrSclSrWN6c+cJoMCPhwzn9ddePrcef23BGCuK+9sBWO6FsV9n+YzGWjoOKyZ7cLKbt7+mO32IWe8JWg2sN1UNgqKnmn+xn2V88Tm1H4yn0N/7m+69IJJg9YtGYQ81t/Tk8wzDVV8PI4JNEAYfDS2Bjmlb22ScSNwz8tXFspqALRUpqFcqxvKWZOHU+3UUvezNFP0abXPPZ63mpOrAlTtkyrGoW9T0KFNMeWhbfxmzP2bA4ulZpau6B8syFLZaqa1m1hDcm7S6jTvO8Kdud0epXCqHqJUaW/agOXp33C7ghKQB6d470tLSCcKZJDa7D1IasTU8Hnq/r1afy9M6TuoZug7dpA+Lnealxi4W7V/nxHsFNZzrFggGnX117ShChZaITU33mSV0EXHwzFra3091+Mf5YyUds590JMCz69MzzAJ/x0hThAZFjEI66ANB/BzWeqwgnRqQkhal3FyVop7UzLu0ancwmJZmD3mDIV/x4tJ0ogtAwICCbNtI7ElOi572rnU6JkdoixWh+JKhua6n6YYraBy+78Oa4J75ZnFNj3D69NJO7ZlsoN4C0nOopd8Hd2JB0nVdAGbYfSTxNv6rwajtNi8Ul38HzZcrxDCIUuEu1YO9Xqn8J6cJ5ARI5uhAM7DbEdgAdVQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(6666004)(8676002)(26005)(508600001)(5660300002)(1076003)(186003)(6512007)(83380400001)(6506007)(86362001)(66946007)(66476007)(316002)(6486002)(38350700002)(956004)(2616005)(38100700002)(66556008)(2906002)(52116002)(4326008)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Zgtwc4YF/jmKKgb8rJG7eQojR0eWX4k+ntbheW++EqfweYgvOcWn+wyVEexg6Tk3gcX+3uaCttFjBtUt7JpHamnMYFpMUGYbSgivguIF2H8wQSLMNIC0IwSz4Gq14NYRweuNZaXX6FpDf0PWreI0Aiq/CoL5ObavJsDekzlD3TZNTnkR8sq0PCgNBIIJ8mBbT3efG7PdT6E5hSVlyA4BIs3oPAXPScEbnhKXOydFTfgEG8MbXsdZCNFQU2sp4UMl4wHPXprpYDTkIH5AgGV6cngXnQK2u0gA6YpB7dTkgHDNd5vcYCYJSzviZd5Lgi1hHhQPmGvgGkY/fKFaGj1AL+EsPF3Q4MjkMJ96gMXzjlf3k0o7EO06+NN/EmFOI5PyW4DELdQsVbFxXYxBG1gkqY3ZuG0v7lV9fMMQM4wPLGtW9H7S8qf5/x3KdCJRdY7WM/3B4PpG3GDjU87Lnp/jqMRUneLjZ49rjzF/EMvu5gc3fpafFhOL+ohrsYuDi8+JpsgKSQWJhhEEMvbqMTN6SHnZ+qS6gMTW4r0tsvjyzRgo7CI9mtw/U8a4oXZyfuDUVPXGMP2osO9Z1Q/BQacR9Vd/IIZRBvAKNaWXk5KX45Ve5hhhYRigJ27tio/teat4IlhoOLIpLpBALr3zacZlw3tmYGMUMn7qe4EgfEuOWcB2w0RJUpvr+riq0UQjgDVDr6lVs9Bt4wUdUEoRpFBl1PO5r4YRrc9rEkWls7QIOetD6MelrlXBApxjp58IOGtc+oZK/IdVEdeVqyH0Z3stj5Pld4H/NgOY90NCsYY1RTtoY8oihsWH/PJhtZ7N3P2GEVZAbPP8Hgpx6F2WwIk2Tci7OCYJanfQt8M+k+OJsUeQySeA1cw/5p/v3+vDfrs5jFCbfQpESv28P5oWMyxtnxULWdpmRKoyeN58waun8uPA8ojKO2t1059jPurK0GnRVWdy0wqT3CgUTBfAp14QxIzSG0sy3kYiK/AlyYhbLAmAoT6HS3meLYapF0JOszlo+zcT3GJBbiwxueyUpEtOmosSMIos4dsNLh9rdFA4G3ogQbiqvf3MOFDRPOy26HG4fnfpVK0VcSBJxSP+D/jHGz4OonCkBfE1shQ8gVhDVqEpL3EeD6vUefz9JELKNl2pDPUTEqLksCy8nKsEjZTdXJswBURj32OUz01rJrpnbjq0NomVrQckPEsFS+nC7N+1fCQCshHDSm800DZAxd7Cmtt0YtUDvb4aw5RoukLgfXfGly2bmWa02OouB/mxrmQK/xiPiLksWkRp55+UBG4r7zYxGSNXIZ62751AnDX1xkJ6fln7Vr1LgVklvvcOhBkS X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6f0649f6-11d8-444a-6522-08d959778979 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2021 07:46:59.4339 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: xdhMai5NSj3weN3XmWtbhx3kNOmd6RgIkjc+oAhPo4/pRnY7L/Y6Yupy4JgjNfC0/YYDLFjzRVuvNS0TqJyERQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4636 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.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
imx: cmd: use struct cmd_tbl
|
expand
|
diff --git a/arch/arm/mach-imx/cmd_mfgprot.c b/arch/arm/mach-imx/cmd_mfgprot.c index 1e866b76c8..aed3b2f83d 100644 --- a/arch/arm/mach-imx/cmd_mfgprot.c +++ b/arch/arm/mach-imx/cmd_mfgprot.c @@ -29,7 +29,7 @@ DECLARE_GLOBAL_DATA_PTR; * Returns zero on success, CMD_RET_USAGE in case of misuse and negative * on error. */ -static int do_mfgprot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +static int do_mfgprot(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { u8 *m_ptr, *dgst_ptr, *c_ptr, *d_ptr, *dst_ptr; char *pubk, *sign, *sel; diff --git a/arch/arm/mach-imx/priblob.c b/arch/arm/mach-imx/priblob.c index e253eddfdc..9b92eae781 100644 --- a/arch/arm/mach-imx/priblob.c +++ b/arch/arm/mach-imx/priblob.c @@ -15,7 +15,7 @@ #include <command.h> #include "../drivers/crypto/fsl_caam_internal.h" -int do_priblob_write(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +int do_priblob_write(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[]) { writel((readl(CAAM_SCFGR) & 0xFFFFFFFC) | 3, CAAM_SCFGR); printf("New priblob setting = 0x%x\n", readl(CAAM_SCFGR) & 0x3);