Message ID | 20210412121223.11390-1-peng.fan@oss.nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c4d2:0:0:0:0:0 with SMTP id h18csp1658091jaj; Mon, 12 Apr 2021 04:40:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNShG5dwQnGDKupTVRyphqkQcx09tUCNVQDGbQmTuhpZIlpKS6hKlx4tKPrybXuf2Q0DW/ X-Received: by 2002:a05:6402:1ad9:: with SMTP id ba25mr19293953edb.264.1618227653483; Mon, 12 Apr 2021 04:40:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618227653; cv=pass; d=google.com; s=arc-20160816; b=cWwi/O7gLgHvFJbdmllGKTutX5O51pQsj9+nOu1s5wKEXmXWLLM2T0yvgb56tJbBG9 Aqn7X/9pN2BmJRl4X6r/InxH1EQEeLt2l/eGs564bUu9lHmcMyRdtRDkmfYLTY4f7ubS YaPKuWGJOkOpTlC0E3Jouz0gPeoMmyTQq0Xr1oCdO9dbUHbhRqmRf8vfa2egl+F3AD7l PK2Kx4YiqEi7Upl9YPF2pMNIQ2HalwkSGH6litt48wiyNiiG7uEeLgd9sM1Hq2ffa4Bi 4roembEBEvpbAzpfSZQjEpqIfZ30sKxxV83c6G9bjJySf/NH6wUFwSCtwfNCyTBsqXrJ CPWg== 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=ssq1PNEr1wHwyrOUT8zymhM2KXKvFyQVwxa1PTI5bDk=; b=xinXO4rUEMgK+ToNxI+mcRmaB8eEI28nKhKZJJ7LTCTFlmyPovP0pQfNqtbi17Q8nv U3fFjYSFMzBVEc8PirUICVIoYXRVMBXCYxyCuGdHoMO4DobLO9VkYry3HKQjrwdzwjL6 FBx4pIt6DgwzwG0ObWMBmOwVAKmQzJXaFUu+pmXl/i2j98km4/ALUar5/plnUCutE0Zm DA3d372pw4HuzTrW0tRg5K3tzV0ZspGHNO4M0nBtCIVyj7wSlG/zVb57ti+DkzBhjHIx t7fBOcacK/eGwIesdEOxNhfgdtbZxnco3JmgopBwX4CCc9zVlqJzl2SJfSIL7DJ1qjG0 y3QA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=JJrLBZ+f; 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 t23si7728870ejf.231.2021.04.12.04.40.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Apr 2021 04:40:53 -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=JJrLBZ+f; 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 5E57180701; Mon, 12 Apr 2021 13:40:48 +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="JJrLBZ+f"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C186D81E6D; Mon, 12 Apr 2021 13:40:46 +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=1.0 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 EUR03-AM5-obe.outbound.protection.outlook.com (mail-am5eur03on0629.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe08::629]) (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 B2CAA800D6 for <u-boot@lists.denx.de>; Mon, 12 Apr 2021 13:40:42 +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=buPMv2QYrY37odN1xImUqdBcjr8UOL0YkccQYt/9CdPfsAEnaSyt3ieEcihBvPJ5v1hOCszXBkcKXLSa2gKb7H0ytOcDcH6aWuyhs5TGQCaNu3KVlTj1cXczmrU/lYsqpJMjm6SIcOJOEEaJ5K9LxOKVE/cu3FFA0MUxxacYV3RzYdxuo+i/wJKqi1q1WcqiVXlOXaKWiu2UA7oDdi84o66k0hTZeM6qTE/UvUKbNh11QNJiN/y5rBgAOF2shBjnRVtN6bHqpZaa2D28zj20UABrIAgJo8OixqmWRvjldvH98y1rLtu2PUydcLoiyr/YBUySQEBK5EVEiSWu/fPvdA== 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=ssq1PNEr1wHwyrOUT8zymhM2KXKvFyQVwxa1PTI5bDk=; b=cPC3wjsNhohN3cjTJXPp5NHb10fv4hrtV2PgWwpAvvsSMj5N+WzoWVDdPk7QIbxnG2oAwbOcNQ7zHjhYEk2d4OEIPG+DIy4QR1YkRq9fSkCE2C8cRE2yrM51T8A+/Sa8PP53UAnr7Bp0+KrSZWxKzO0n5IYCnQrrB4GZrcFmiLrEDAsho1SKhXpaEJUuWD95i9te+viFy2b+5+AcOcGc9bEN3vhsihUxmNBoEFGMJHwTE2v0wS1iZ8Cp8POLbhP0yZJpSHvPq0J7AsXWuGQDG+s5FkaX07l+8euCjDY5Sy5NbhvNIng1iTVETy63AJGYYrS7laeNlSUbBsjfGVzq2g== 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=ssq1PNEr1wHwyrOUT8zymhM2KXKvFyQVwxa1PTI5bDk=; b=JJrLBZ+fHTAzro65WH/qY/NEvnc5/CJjYbwo8sufQpGP0GA40+SRpPCS32lWj2n4zlfk7UXM6WvQU2OMHKqM0EqqpRRhmuaN9i610HKusfjepBFlShC0c5Fu+rdpsQorvwUMRibQHTebBIr/4tAymqXWmI8q9Jk3l3x4ZOSZ1TQ= 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 DBAPR04MB7223.eurprd04.prod.outlook.com (2603:10a6:10:1b0::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.17; Mon, 12 Apr 2021 11:40:40 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf%11]) with mapi id 15.20.3999.032; Mon, 12 Apr 2021 11:40:40 +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: Mon, 12 Apr 2021 20:12:23 +0800 Message-Id: <20210412121223.11390-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: HK2P15301CA0016.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::26) 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 HK2P15301CA0016.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.1 via Frontend Transport; Mon, 12 Apr 2021 11:40:38 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5afe85ba-0b03-443a-7e79-08d8fda7cc72 X-MS-TrafficTypeDiagnostic: DBAPR04MB7223: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DBAPR04MB722303544874D7539100E140C9709@DBAPR04MB7223.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:843; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8FZHcz3oljzTdiGhKCfpgdG4Ay5NqUFKvuEo1bTYezOM0d+IA3ntrPCP6yTpVI251QL7eAXQ/BDm3IYTgHI9mL9r0qwaTRaqbe6x1t5BJKG62y7uAF/rNHbtrewGimCXh/d5OJGhvO7QfXT9QbgnRSsHypPG/6lA6OstYKuJlj5ngJaO67ueIrdKkDML0LEpASb13+0RF7T/LIaMm2CdGb5xipp+FoobwJ4ihnfj7qbU0jgaAuFdQdJhoaeTOoHdj7RhowA8JpFYkU1BW+RTeLaUpQ0h2TZCt+Oz6xwRe4C6b++Tyi2gg8hWQCqzQeFiD66kvypu/vWcCXk7x+LT0/qQ9TLgfO7obqEz1KmqxRN9jyxdHEXMxJitJbTKzVpI9Uzx3PSdPiF3b+HFDF3KkxoCgiYS4MSJPfM3ukwqHFwLt4UvgwfqAxS154yViEc3eMG2xtd6E0YN9PRzNiBRX857Fz6hWxyl2Wj99U0VLFSe03GKf0KCvHSC0/k6b3lHHpmiOHbHHAMlskN+5+j/JAE1XEZcLuljr9RUuzrDzi/K3Rg6pA6PjS0qcydTkSk0KhJazUMyy9Yv4bz2OGYVEl6iWPxIVX5C6uHJQZ1QI6bBjDdY9fo5icTmZgxZMpXbbxZSzJuHJ5+zI7HjhzR+kQ== 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)(346002)(396003)(376002)(136003)(366004)(39860400002)(2616005)(26005)(1076003)(956004)(4326008)(38100700002)(2906002)(5660300002)(8676002)(16526019)(83380400001)(186003)(86362001)(66556008)(478600001)(6666004)(66946007)(66476007)(8936002)(316002)(6486002)(6512007)(38350700002)(52116002)(6506007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: rN4G44jncN5mw0uXg0sqkA1JfsHgfKn0+kXYcEg6E3KiacvkjG1afH9wg0zSm62L/nBWzDP+Yoxk1K8Qe7wPALIJSt3rkT74k7Wjru6fLWWDsXzdGrKrG5lwKAwZGVSGWviWfhjzpL0rGWZPyUeVIdo9EDhDxT89wygWKZJjC/J7lLEktS3QnFM0SHxF8lYNxqoUw84OLlns+PEn/HbE5wtXRWblgqaTENiGWIVRjI33HLE6u7T23IBSGrb9rgjylb59TP8RHbUsJqMaC46lMJpAmZhPUCRyHEMure/CK/kpgBrlTEdnUd87/pPYi0lr6z1N5L7FfmvPKHMrtqjtVaH9Uj/cPlaLLwShEn+xUkVG5js3fzuNd+rHyOB9dF0ueJ0EWfoV0Ph1Yxi1i90Yh59Nzzo22y1mZroItvggjXSC2b+ODs0EqTEQ64dZlNLkN5xec1Qj6wfqKir99LKDBxa+w5kJdv1Do6qt7J1aqmevR4v8+lul0ByomCUL+kEvmxmnzoTGc5fxA5HYJsZ6hwe9YPkG2MP1cPbvLrWJlFunXyJnjuYcvpBOm8E7RuGkoTfbb8N4/n60M+tOS0SIBII90v+60WUtAXf8VqwJYoVvQDJ4m88MCNkaQ2nCKipa3QgKCfEIx8AEb2SJBo1yKFjjU1bidsgWeWUvB9O0X6wjd4DUaPPDOayKacGiG7lqAyrIk/NNrBt25hUNWo+8eICqrKQhkw+0XmXUUvGeD0c2XdYscW5Jmgdt9sclZpfpsqzyxUW6IBbD3ptx6XuCQqLo9aRJA1RWtCcnC/qyDiPF/RYBmF1pK5+FlDUtw7nNoeU0t1szN3IreoJgZI2YbeFItloq6uQPQRcqL/EVdxX/71yNwfuaokzrW1FZx/v8SMezxsxE6+IWqyfnouRaWOxRqvOCXqmKWjzKnRD4dQCNzlUFPFdBgpp0/NoZl0hL9AFXI59ADRktYb1zehNb0BrQrZ1DXBUkVV7qLI3t1HOdG0nJBih1vEUwa8z+eKNv/z4IUgsPxXF27iwCwox0ap2fhu4VRYdOjTPar3fwtkn+3YcnjAiC8jWOt13JTf7bu/kabBHg3buGFwOOxUcI9HohSbgRSJrcC6NT8Xjtxh/QRyMW/xLhjS1tlw8JTTTUaTz5NOyJuBfCKT2t0Kc24NiPZLBKW2eUB+rGIdWdviiGFOXbeByR6pXVLYhBp5PJ0ZbbJK0+9k58mfpoX7um3/+xZTQzReIYIvD3VeArRFD4knQlP+x5nS4o6LJnxdW+gsCSFj4dW/3I1d3lsHLKXSgjVSp1WBhFShaVWdjwSJA26Re4l7/XoULYBvv7THPG X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5afe85ba-0b03-443a-7e79-08d8fda7cc72 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2021 11:40:40.7215 (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: 8JNIpI0Ap7uVzrgGq+Aa1PnugrayvJ/PtGVhUfwWuT1EW4yEnCCMPRcSN1c/r85S0ffRuYhcwjrOgrdq/f2ATA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7223 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.4 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 1430f61909..47ae9bf1eb 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); diff --git a/cmd/cmd_fsl_caam.c b/cmd/cmd_fsl_caam.c index d41d672320..95133835d7 100644 --- a/cmd/cmd_fsl_caam.c +++ b/cmd/cmd_fsl_caam.c @@ -7,7 +7,7 @@ #include <command.h> #include <fsl_caam.h> -static int do_caam(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +static int do_caam(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[]) { int ret, i;