Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f9092f3 authored by Justin P. Mattock's avatar Justin P. Mattock Committed by Greg Kroah-Hartman
Browse files

drivers:staging:mei Fix some typos in staging/mei



The below patch fixes some typos in drivers/staging/mei/* that I have found while
doing a little bit of reading.

Signed-off-by: default avatarJustin P. Mattock <justinmattock@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7411f9cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -275,7 +275,7 @@ int mei_flow_ctrl_creds(struct mei_device *dev, struct mei_cl *cl)
 * @returns
 *	0 on success
 *	-ENOENT when me client is not found
 *	-EINVAL wehn ctrl credits are <= 0
 *	-EINVAL when ctrl credits are <= 0
 */
int mei_flow_ctrl_reduce(struct mei_device *dev, struct mei_cl *cl)
{
+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ void mei_wd_set_start_timeout(struct mei_device *dev, u16 timeout);
 */
void mei_watchdog_register(struct mei_device *dev);
/*
 * mei_watchdog_unregister  - Uegistering watchdog interface
 * mei_watchdog_unregister  - Unregistering watchdog interface
 * @dev - mei device
 */
void mei_watchdog_unregister(struct mei_device *dev);
+3 −3
Original line number Diff line number Diff line
@@ -719,7 +719,7 @@ static void mei_irq_thread_read_bus_message(struct mei_device *dev,
				dev->me_client_index++;
				dev->me_client_presentation_num++;

				/** Send Client Propeties request **/
				/** Send Client Properties request **/
				res = mei_host_client_properties(dev);
				if (res < 0) {
					dev_dbg(&dev->pdev->dev, "mei_host_client_properties() failed");
@@ -1507,7 +1507,7 @@ irqreturn_t mei_interrupt_thread_handler(int irq, void *dev_id)
	dev->host_hw_state = mei_hcsr_read(dev);

	/* Ack the interrupt here
	 * In case of MSI we don't go throuhg the quick handler */
	 * In case of MSI we don't go through the quick handler */
	if (pci_dev_msi_enabled(dev->pdev))
		mei_reg_write(dev, H_CSR, dev->host_hw_state);

@@ -1543,7 +1543,7 @@ irqreturn_t mei_interrupt_thread_handler(int irq, void *dev_id)
			return IRQ_HANDLED;
		}
	}
	/* check slots avalable for reading */
	/* check slots available for reading */
	slots = mei_count_full_read_slots(dev);
	dev_dbg(&dev->pdev->dev, "slots =%08x  extra_write_index =%08x.\n",
		slots, dev->extra_write_index);
+2 −2
Original line number Diff line number Diff line
@@ -109,8 +109,8 @@ int mei_ioctl_connect_client(struct file *file,
	dev_dbg(&dev->pdev->dev, "FW Client - Max Msg Len = %d\n",
			dev->me_clients[i].props.max_msg_length);

	/* if we're connecting to amthi client so we will use the exist
	 * connection
	/* if we're connecting to amthi client then we will use the
	 * existing connection
	 */
	if (uuid_le_cmp(data->in_client_uuid, mei_amthi_guid) == 0) {
		dev_dbg(&dev->pdev->dev, "FW Client is amthi\n");
+2 −2
Original line number Diff line number Diff line
@@ -430,7 +430,7 @@ static ssize_t mei_read(struct file *file, char __user *ubuf,
		goto free;
	} else if ((!cl->read_cb || !cl->read_cb->information) &&
		    *offset > 0) {
		/*Offset needs to be cleaned for contingous reads*/
		/*Offset needs to be cleaned for contiguous reads*/
		*offset = 0;
		rets = 0;
		goto out;
@@ -493,7 +493,7 @@ copy_buffer:
		goto free;
	}

	/* length is being turncated to PAGE_SIZE, however, */
	/* length is being truncated to PAGE_SIZE, however, */
	/* information size may be longer */
	length = min_t(size_t, length, (cb->information - *offset));

Loading