diff --git a/scst/include/scst_const.h b/scst/include/scst_const.h index 7b69613f5..2b05b723c 100644 --- a/scst/include/scst_const.h +++ b/scst/include/scst_const.h @@ -301,7 +301,7 @@ static inline int scst_sense_response_code(const uint8_t *sense) #define scst_sense_asym_access_state_changed UNIT_ATTENTION, 0x2A, 0x06 #define scst_sense_capacity_data_changed UNIT_ATTENTION, 0x2A, 0x9 #define scst_sense_cleared_by_another_ini_UA UNIT_ATTENTION, 0x2F, 0 -#define scst_sense_inquery_data_changed UNIT_ATTENTION, 0x3F, 0x3 +#define scst_sense_inquiry_data_changed UNIT_ATTENTION, 0x3F, 0x3 #define scst_sense_reported_luns_data_changed UNIT_ATTENTION, 0x3F, 0xE /************************************************************* diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 627d26e87..c1592bfcb 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -2579,7 +2579,7 @@ next: tgt_dev->inq_changed_ua_needed = 0; scst_gen_aen_or_ua(tgt_dev, - SCST_LOAD_SENSE(scst_sense_inquery_data_changed)); + SCST_LOAD_SENSE(scst_sense_inquiry_data_changed)); } } } diff --git a/scst/src/scst_proc.c b/scst/src/scst_proc.c index d0b3bacb8..dd092cc8e 100644 --- a/scst/src/scst_proc.c +++ b/scst/src/scst_proc.c @@ -2072,7 +2072,7 @@ static ssize_t scst_proc_groups_devices_write(struct file *file, TRACE_MGMT_DBG("INQUIRY DATA HAS CHANGED" " on tgt_dev %p", tgt_dev); scst_gen_aen_or_ua(tgt_dev, - SCST_LOAD_SENSE(scst_sense_inquery_data_changed)); + SCST_LOAD_SENSE(scst_sense_inquiry_data_changed)); } } } diff --git a/scst/src/scst_sysfs.c b/scst/src/scst_sysfs.c index 9d49514d7..5e7e3660c 100644 --- a/scst/src/scst_sysfs.c +++ b/scst/src/scst_sysfs.c @@ -1252,7 +1252,7 @@ static int __scst_process_luns_mgmt_store(char *buffer, TRACE_MGMT_DBG("INQUIRY DATA HAS CHANGED" " on tgt_dev %p", tgt_dev); scst_gen_aen_or_ua(tgt_dev, - SCST_LOAD_SENSE(scst_sense_inquery_data_changed)); + SCST_LOAD_SENSE(scst_sense_inquiry_data_changed)); } } }