Commit 2506f5d
scsi: mvsas: Use DEVICE_ATTR_RO()/RW() macro
Use DEVICE_ATTR_RO()/RW() macro helper instead of plain DEVICE_ATTR(),
which makes the code a bit shorter and easier to read.
Link: https://lore.kernel.org/r/20210616034419.725-5-thunder.leizhen@huawei.com
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 4c92f89 commit 2506f5d
1 file changed
Lines changed: 9 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
693 | 693 | | |
694 | 694 | | |
695 | 695 | | |
696 | | - | |
697 | | - | |
698 | | - | |
| 696 | + | |
| 697 | + | |
699 | 698 | | |
700 | 699 | | |
701 | 700 | | |
702 | 701 | | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
| 702 | + | |
707 | 703 | | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
712 | 707 | | |
713 | 708 | | |
714 | 709 | | |
| |||
746 | 741 | | |
747 | 742 | | |
748 | 743 | | |
749 | | - | |
750 | | - | |
| 744 | + | |
| 745 | + | |
751 | 746 | | |
752 | 747 | | |
753 | 748 | | |
754 | 749 | | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
| 750 | + | |
759 | 751 | | |
760 | 752 | | |
761 | 753 | | |
| |||
0 commit comments