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

Commit c4d589be authored by Tomas Winkler's avatar Tomas Winkler Committed by Greg Kroah-Hartman
Browse files

mei: rename function mei_hw_init to mei_start



The hw initialization is now done as part of
hw specific code this makes the name mei_hw_init little misleading.

We rename it to mei_start in spirit of already existing
functions mei_stop and mei_reset.

Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d0265f12
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -69,13 +69,13 @@ void mei_device_init(struct mei_device *dev)
}

/**
 * mei_hw_init - initializes host and fw to start work.
 * mei_start - initializes host and fw to start work.
 *
 * @dev: the device structure
 *
 * returns 0 on success, <0 on failure.
 */
int mei_hw_init(struct mei_device *dev)
int mei_start(struct mei_device *dev)
{
	int ret = 0;

+1 −1
Original line number Diff line number Diff line
@@ -393,7 +393,7 @@ static inline u32 mei_data2slots(size_t length)
 */
void mei_device_init(struct mei_device *dev);
void mei_reset(struct mei_device *dev, int interrupts);
int mei_hw_init(struct mei_device *dev);
int mei_start(struct mei_device *dev);
void mei_stop(struct mei_device *dev);

/*
+1 −1
Original line number Diff line number Diff line
@@ -184,7 +184,7 @@ static int mei_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
		goto disable_msi;
	}

	if (mei_hw_init(dev)) {
	if (mei_start(dev)) {
		dev_err(&pdev->dev, "init hw failure.\n");
		err = -ENODEV;
		goto release_irq;