> +static inline void translate_msg_byte(struct scsi_cmnd *cmd, u8 msg) I think a comment describing the function would be very helpful. Also maybe scsi_message_to_host_byte might be a more descriptive name?
> +static inline void translate_msg_byte(struct scsi_cmnd *cmd, u8 msg) I think a comment describing the function would be very helpful. Also maybe scsi_message_to_host_byte might be a more descriptive name?