synaptics: Fix typos

This commit is contained in:
Bastien Nocera 2020-04-14 13:47:48 +02:00
parent e7ff4f705c
commit 87c7894c28
2 changed files with 7 additions and 7 deletions

View file

@ -316,7 +316,7 @@ typedef struct bmkt_init_resp
*/ */
typedef struct bmkt_enroll_resp typedef struct bmkt_enroll_resp
{ {
int progress; /**< Shows current progress stutus [0-100] */ int progress; /**< Shows current progress status [0-100] */
uint8_t finger_id; /**< User's finger id [1-10] */ uint8_t finger_id; /**< User's finger id [1-10] */
uint8_t user_id[BMKT_MAX_USER_ID_LEN]; /**< User name to be enrolled */ uint8_t user_id[BMKT_MAX_USER_ID_LEN]; /**< User name to be enrolled */
} bmkt_enroll_resp_t; } bmkt_enroll_resp_t;

View file

@ -35,7 +35,7 @@ static const FpIdEntry id_table[] = {
static void static void
cmd_recieve_cb (FpiUsbTransfer *transfer, cmd_receive_cb (FpiUsbTransfer *transfer,
FpDevice *device, FpDevice *device,
gpointer user_data, gpointer user_data,
GError *error) GError *error)
@ -234,7 +234,7 @@ synaptics_cmd_run_state (FpiSsm *ssm,
fpi_usb_transfer_submit (transfer, fpi_usb_transfer_submit (transfer,
5000, 5000,
NULL, NULL,
cmd_recieve_cb, cmd_receive_cb,
fpi_ssm_get_data (ssm)); fpi_ssm_get_data (ssm));
break; break;
@ -321,7 +321,7 @@ synaptics_sensor_cmd (FpiDeviceSynaptics *self,
g_assert (payload || payload_len == 0); g_assert (payload || payload_len == 0);
/* seq_num of 0 means a normal command, -1 means the current commands /* seq_num of 0 means a normal command, -1 means the current commands
* sequence number should not be udpated (i.e. second async command which * sequence number should not be updated (i.e. second async command which
* may only be a cancellation currently). */ * may only be a cancellation currently). */
if (seq_num <= 0) if (seq_num <= 0)
{ {
@ -730,7 +730,7 @@ enroll_msg_cb (FpiDeviceSynaptics *self,
if (enroll_resp->progress < 100) if (enroll_resp->progress < 100)
done_stages = MIN (done_stages, ENROLL_SAMPLES - 1); done_stages = MIN (done_stages, ENROLL_SAMPLES - 1);
/* Emit a retry error if there has been no discernable /* Emit a retry error if there has been no discernible
* progress. Some firmware revisions report more required * progress. Some firmware revisions report more required
* touches. */ * touches. */
if (self->enroll_stage == done_stages) if (self->enroll_stage == done_stages)
@ -849,7 +849,7 @@ enroll (FpDevice *device)
user_id_len = strlen (user_id); user_id_len = strlen (user_id);
user_id_len = MIN (BMKT_MAX_USER_ID_LEN, user_id_len); user_id_len = MIN (BMKT_MAX_USER_ID_LEN, user_id_len);
/* We currently always use finger 1 from the devices piont of view */ /* We currently always use finger 1 from the devices point of view */
finger = 1; finger = 1;
uid = g_variant_new_fixed_array (G_VARIANT_TYPE_BYTE, uid = g_variant_new_fixed_array (G_VARIANT_TYPE_BYTE,
@ -1029,7 +1029,7 @@ dev_probe (FpDevice *device)
if (!read_ok) if (!read_ok)
{ {
g_warning ("Transfer in response to verison query was too short"); g_warning ("Transfer in response to version query was too short");
error = fpi_device_error_new (FP_DEVICE_ERROR_PROTO); error = fpi_device_error_new (FP_DEVICE_ERROR_PROTO);
goto err_close; goto err_close;
} }