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

Commit 5f976439 authored by Bhaumik Bhatt's avatar Bhaumik Bhatt
Browse files

mhi: core: assign controller name to own device



Controller name can be assigned to the mhi device under the
chan_name field which can be read in certain use cases.

Change-Id: I4bd8050b3ba485f3cf27a2f355e0ce2bacc66ccc
Signed-off-by: default avatarBhaumik Bhatt <bbhatt@codeaurora.org>
parent 65c0076e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1474,6 +1474,7 @@ int of_register_mhi_controller(struct mhi_controller *mhi_cntrl)
	}

	mhi_dev->dev_type = MHI_CONTROLLER_TYPE;
	mhi_dev->chan_name = mhi_cntrl->name;
	mhi_dev->mhi_cntrl = mhi_cntrl;
	dev_set_name(&mhi_dev->dev, "%04x_%02u.%02u.%02u", mhi_dev->dev_id,
		     mhi_dev->domain, mhi_dev->bus, mhi_dev->slot);