spelling fixes for hs2p backend

merge-requests/540/head
Peter Marschall 2020-08-29 08:31:33 +02:00
rodzic e0bc8e9ba7
commit 9a6ef1ceb0
4 zmienionych plików z 11 dodań i 11 usunięć

Wyświetl plik

@ -609,7 +609,7 @@ sense_handler (int __sane_unused__ scsi_fd, u_char * sense_buffer, void *sd)
case 0x2C02: /* Invalid combination of windows specified */
status = SANE_STATUS_INVAL;
break;
case 0x3700: /* (Rounded paramter) */
case 0x3700: /* (Rounded parameter) */
status = SANE_STATUS_INVAL;
break;
case 0x3900: /* (Saving parameters not supported) */
@ -928,7 +928,7 @@ mode_sense (int fd, MP * buf, SANE_Byte page_code)
cmd.dbd &= ~(1 << 3); /* Disable Block Description (bit3) is set to 0 */
cmd.pc = (page_code & 0x3F); /* bits 5-0 */
cmd.pc &= ~(0x03 << 6); /* unset PC Field (bits7-6)
* 00 Curent Value is the only effective value
* 00 Current Value is the only effective value
* 01 Changeable Value
* 10 Default Value
* 11 Saved Value */
@ -1014,7 +1014,7 @@ set_window (int fd, SWD * swd)
DBG (DBG_error, "set_window: error with memcpy\n");
}
/* Set Window Data Header: 0-5:reserved; 6-7:Window Descriptor Lenght=640 */
/* Set Window Data Header: 0-5:reserved; 6-7:Window Descriptor Length=640 */
wdl = sizeof (win.swd) - sizeof (win.swd.hdr);
_lto2b (wdl, &win.swd.hdr.len[0]);
DBG (DBG_info,

Wyświetl plik

@ -623,7 +623,7 @@ typedef struct mode_page_service
typedef struct scsi_mode_sense_cmd
{
SANE_Byte opcode; /* 1AH */
SANE_Byte dbd; /* 7-5:LUN; 4:Reserved; 3:DBD (Disable Block Desciption) set to "0"; 2-0:Reserved */
SANE_Byte dbd; /* 7-5:LUN; 4:Reserved; 3:DBD (Disable Block Description) set to "0"; 2-0:Reserved */
SANE_Byte pc; /* 7-6:PC; 5-0:Page Code
* PC field indicates the type of data to be returned (bit7,bit6):
* 00 Current Value (THIS IS THE ONLY VALUE WHICH WORKS!)
@ -919,7 +919,7 @@ struct hs2p_window_data
* 0: 0=>output from bit0 of each byte; 1=>output from bit7
* 1: 0=>output from LSB; 1=>output from MSB
* 2: 0=>unpacked 4 bits gray; 1=>Packed 4 bits gray
* 3: 1=>Bits arrangment from LSB in grayscale; 0=>from MSB
* 3: 1=>Bits arrangement from LSB in grayscale; 0=>from MSB
* 4-6: reserved
* 7: 1=>Mirroring; 0=>Normal output
* 8-15: reserved

Wyświetl plik

@ -51,10 +51,10 @@
. . . init_options : initialize SANE_OPTIONS array
. . - sane_set_io_mode : set blocking-mode
. . - sane_get_select_fd : get scanner-fd
. . - sane_get_option_descriptor() : get option informations
. . - sane_get_option_descriptor() : get option information
. . - sane_control_option() : change option values
. .
. . - sane_start() : start image aquisition
. . - sane_start() : start image acquisition
. . - sane_get_parameters() : returns actual scan-parameters
. . - sane_read() : read image-data (from pipe)
. .
@ -1535,7 +1535,7 @@ do_cancel (HS2P_Scanner * s)
object_position (s->fd,
OBJECT_POSITION_UNLOAD)) != SANE_STATUS_GOOD)
{
DBG (DBG_error, "cancel: OBJECT POSTITION failed\n");
DBG (DBG_error, "cancel: OBJECT POSITION failed\n");
}
sanei_scsi_req_flush_all ();
release_unit (s->fd);
@ -1588,7 +1588,7 @@ sane_init (SANE_Int * version_code,
}
#if 0
/* avision.c: search for all supported scanners on all scsi busses & channels */
/* avision.c: search for all supported scanners on all scsi buses & channels */
for (hw = &HS2P_Device_List[0]; hw->mfg != NULL; hw++)
{
sanei_scsi_find_devices (hw->mfg, /*vendor */
@ -3252,7 +3252,7 @@ pad:
/*
* If status != SANE_STATUS_GOOD, then sense_handler() has already
* been called and the sanei_* functions have already gotten the
* sense data buffer (which apparently clears the error conditionn)
* sense data buffer (which apparently clears the error condition)
* so the following doesn't work:
get_sense_data (s->fd, &(s->hw->sense_data));
print_sense_data (&(s->hw->sense_data));

Wyświetl plik

@ -342,7 +342,7 @@ static const HS2P_Paper paper_sizes[] = { /* Name, Width, Height in mm */
{"Full", 0.0, 0.0},
};
#define PORTRAIT "Portait"
#define PORTRAIT "Portrait"
#define LANDSCAPE "Landscape"
static SANE_String_Const orientation_list[] = {
PORTRAIT,