Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp871862pxf; Wed, 7 Apr 2021 13:48:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCyCSUWMLFxSo5dftdvsUWIuhmkmt1O6ZvdmCVd78m34hP7S9QhSalUiwjCBH2cUVCFlU9 X-Received: by 2002:a05:6402:1587:: with SMTP id c7mr6911884edv.147.1617828532627; Wed, 07 Apr 2021 13:48:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617828532; cv=none; d=google.com; s=arc-20160816; b=xK17fpn9vhEKrv7LNc1YHpmCbOiSM1DvobnPk5xdVxIHw9DJohJiKh2kfP/lMDPhph jX+YKIcBlo226VOTiZeiqT6iJBlv/OYYCxnl1eLcmFKwskXW5pbTHWYn32ykxt9xbAHY dc9i6kr/+htjJJD7+iuNZYkjHBcg8hrpE554Rf4LURnYUCKu9lTumycqkxz/KRpO8CZg hx0Rtr8R596fBWp9vq0VOmGeOhQhZZMDymb1V/OT9jAzUY9Ekj/Lsw9wfW5cGcI086Ta MyzP/kxWniAQCilhfOnUu2L6F+GMKkh/r243Emnyg4teSYKaj32U9ur8z4+faAFALIJq Ck9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=lLvQuHbZ+AnPJ9ocKwASX6UHwf1z/ehlNwPJ4znnHKo=; b=qLOMc4unLu/53aHcftwesJTFb1Rk3V7yYN4e20VqQS4qkQBVbiz2mrwjydbZsNall5 FU5qzFv6xZIsK/+BVw1QuJ/63mH6brHhwkyXMqT+LsmMQMXeixcb2wkyMYYrzAVswHeW eB9PsHfGcTSV6DB7aQHW0l4l5bV/qkbn12F1l8IksgHzEBxk5DmIF+iZtTXRbiNDQ77+ VsoYsj3Kfq7gtJoo1nPQGsLGCkyDxwc8WGbWIjGhEPvdZlXSjb7hVjtObVJc7VLi3wrz u1D+pEPxV8kIwZvrCWQKWi7EVRPwucWL2dUn+vz+4+rxRQ8fm9o2Jk+PN2mfTDLesm+x GRuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id va12si7034871ejb.687.2021.04.07.13.48.29; Wed, 07 Apr 2021 13:48:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350736AbhDGKHs (ORCPT + 99 others); Wed, 7 Apr 2021 06:07:48 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:16013 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346612AbhDGKHc (ORCPT ); Wed, 7 Apr 2021 06:07:32 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FFg3l2r64zPnwf; Wed, 7 Apr 2021 18:04:35 +0800 (CST) Received: from huawei.com (10.69.192.56) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.498.0; Wed, 7 Apr 2021 18:07:13 +0800 From: Luo Jiaxing To: , , CC: , , , Subject: [PATCH v2 2/2] scsi: pm8001: clean up for open brace Date: Wed, 7 Apr 2021 18:07:39 +0800 Message-ID: <1617790059-43125-3-git-send-email-luojiaxing@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617790059-43125-1-git-send-email-luojiaxing@huawei.com> References: <1617790059-43125-1-git-send-email-luojiaxing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are few error about open brace is reported by checkpatch.pl: ERROR: that open brace { should be on the previous line +static struct error_fw flash_error_table[] = +{ So fix them all. Signed-off-by: Jianqin Xie Signed-off-by: Luo Jiaxing --- drivers/scsi/pm8001/pm8001_ctl.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/pm8001/pm8001_ctl.c b/drivers/scsi/pm8001/pm8001_ctl.c index f5de47f..ffd3ee9 100644 --- a/drivers/scsi/pm8001/pm8001_ctl.c +++ b/drivers/scsi/pm8001/pm8001_ctl.c @@ -645,8 +645,7 @@ struct flash_command { int code; }; -static struct flash_command flash_command_table[] = -{ +static const struct flash_command flash_command_table[] = { {"set_nvmd", FLASH_CMD_SET_NVMD}, {"update", FLASH_CMD_UPDATE}, {"", FLASH_CMD_NONE} /* Last entry should be NULL. */ @@ -657,8 +656,7 @@ struct error_fw { int err_code; }; -static struct error_fw flash_error_table[] = -{ +static const struct error_fw flash_error_table[] = { {"Failed to open fw image file", FAIL_OPEN_BIOS_FILE}, {"image header mismatch", FLASH_UPDATE_HDR_ERR}, {"image offset mismatch", FLASH_UPDATE_OFFSET_ERR}, -- 2.7.4