From patchwork Wed Jun 16 03:44:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 461342 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp196448jae; Tue, 15 Jun 2021 20:45:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjpZh2j2YCkVf21PNvE4ZpuxKTU+d7+j9h3LlCwxVWC9AiPo+lXWk8JDuiXUjPPiJWX9NJ X-Received: by 2002:a5d:8254:: with SMTP id n20mr1989699ioo.85.1623815152485; Tue, 15 Jun 2021 20:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623815152; cv=none; d=google.com; s=arc-20160816; b=k5t+4/z7Mwr5xVeyBTR2WUACEPRl8Lb/1vdh8FQwgcDOKZV9xmpVWvDaCPfTjBtU7m 2OoHwb8fIwV6rj+QcYz8tVCGFBf2UNsGeZK/xpaxTnAYonis2vAuHfubE4mvI3b7PTUP 1yM2poL9dyOgx+LHLkYn/bviFawKAgxx1dBv9iG3rMbR8qa58Zf7ST0HFguH03LLgefV JsPwJDTtVipnTL1k6efv6VqY9DFw/Fo0FiNYMDpSiJY0obyFhl5ftnjQ8yIfofDELA4J i+51ujD3aavN8SVCf6mtY/R8m4T10Eh+InzenEYLRf53d6dN74eWz9bpahUxycb2K7bf ZBxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=WDQQNkLd3fuS5upHnICBVnI4ychMwP6sXNH+c8fyDcA=; b=wQro7PEfOn6odSFxuYxiv4DaEH8MJPvXBYzDOVhpCPz12o16PFGww4bu3zJjtnIeTc GVwhk5h8gbuEFDOwnmsnoMJzDlZgJIqfWpZV6U7Od2zcAunrDQc/uji3kbFA7XZIK2AL pkDMJuFZ5OUi/sT9xLSF3Ml/dKTcl4asdWlEDsu+tob6TphOPO2ZrObttHgY5Z2GwPkZ kwMfhPTKiS6XGvUTaMp0TF6v/uyACKmPo1jUZ/TPw1My+dVdAUPq9Uc5slBNVaLby4S0 D3eFlS5JjScGKeuD+ONNnq7Sz44w3xbkkAFkpJrsUDHkpSnDBlLSiR/iYfdxN75wh6bf l9aw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-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 j18si1198777jak.97.2021.06.15.20.45.52 for ; Tue, 15 Jun 2021 20:45:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-scsi-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-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-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 S230508AbhFPDr5 (ORCPT ); Tue, 15 Jun 2021 23:47:57 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:4792 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230083AbhFPDrz (ORCPT ); Tue, 15 Jun 2021 23:47:55 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G4WDb6LGHzXgPd; Wed, 16 Jun 2021 11:40:47 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 16 Jun 2021 11:45:44 +0800 Received: from thunder-town.china.huawei.com (10.174.179.0) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 16 Jun 2021 11:45:43 +0800 From: Zhen Lei To: Nilesh Javali , Manish Rangankar , Saurav Kashyap , Javed Hasan , Kashyap Desai , "Sumit Saxena" , Shivasharan S , GR-QLogic-Storage-Upstream , "megaraidlinux . pdl" , "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi CC: Zhen Lei Subject: [PATCH v2 0/4] scsi: use DEVICE_ATTR_*() macros to simplify code Date: Wed, 16 Jun 2021 11:44:15 +0800 Message-ID: <20210616034419.725-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.0] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org v1 --> v2: Combine these individual patches into a series. Zhen Lei (4): scsi: qedi: use DEVICE_ATTR_RO macro scsi: qedf: use DEVICE_ATTR_RO macro scsi: megaraid_mbox: use DEVICE_ATTR_ADMIN_RO macro scsi: mvsas: use DEVICE_ATTR_RO/RW macro drivers/scsi/megaraid/megaraid_mbox.c | 18 ++++++++---------- drivers/scsi/mvsas/mv_init.c | 26 +++++++++----------------- drivers/scsi/qedf/qedf_attr.c | 14 ++++++-------- drivers/scsi/qedi/qedi_sysfs.c | 14 +++++++------- 4 files changed, 30 insertions(+), 42 deletions(-) -- 2.26.0.106.g9fadedd