summaryrefslogtreecommitdiff
path: root/drivers/scsi/megaraid/megaraid_sas_base.c
diff options
context:
space:
mode:
authorTomas Henzl <thenzl@redhat.com>2019-05-29 19:00:39 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2019-06-19 02:46:25 +0300
commitdeff37063351ddf5defe1027b172548fdfbdcbe6 (patch)
treef753649bf703614c5bd44303f71a6dccf0b66837 /drivers/scsi/megaraid/megaraid_sas_base.c
parentcdf79db476c44c580045e9e0937288502e00eaad (diff)
downloadlinux-deff37063351ddf5defe1027b172548fdfbdcbe6.tar.xz
scsi: megaraid_sas: make max_sectors visible in sys
Support is easier with all driver parameters visible in sysfs. Signed-off-by: Tomas Henzl <thenzl@redhat.com> Acked-by: Sumit Saxena <sumit.saxena@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/megaraid/megaraid_sas_base.c')
-rw-r--r--drivers/scsi/megaraid/megaraid_sas_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
index 46effaa3c9f3..ae9ac318fef3 100644
--- a/drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/drivers/scsi/megaraid/megaraid_sas_base.c
@@ -64,7 +64,7 @@
* Will be set in megasas_init_mfi if user does not provide
*/
static unsigned int max_sectors;
-module_param_named(max_sectors, max_sectors, int, 0);
+module_param_named(max_sectors, max_sectors, int, S_IRUGO);
MODULE_PARM_DESC(max_sectors,
"Maximum number of sectors per IO command");