mbox series

[v2,0/4] scsi: use DEVICE_ATTR_*() macros to simplify code

Message ID 20210616034419.725-1-thunder.leizhen@huawei.com (mailing list archive)
Headers show
Series scsi: use DEVICE_ATTR_*() macros to simplify code | expand

Message

Leizhen (ThunderTown) June 16, 2021, 3:44 a.m. UTC
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(-)

Comments

Martin K. Petersen June 23, 2021, 2:42 a.m. UTC | #1
Zhen,

> 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

Applied to 5.14/scsi-staging, thanks!