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

Commit ad44088f authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman
Browse files

staging: unisys: visorchannel_write(): Use memcpy_toio() directly

parent d24c3f07
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -216,10 +216,15 @@ visorchannel_write(struct visorchannel *channel, ulong offset,
{
	size_t size = sizeof(struct channel_header);

	if (offset + nbytes > channel->memregion.nbytes)
		return -EIO;

	if (!offset && nbytes >= size)
		memcpy(&channel->chan_hdr, local, size);
	return visor_memregion_write(&channel->memregion,
				     offset, local, nbytes);

	memcpy_toio(channel->memregion.mapped + offset, local, nbytes);

	return 0;
}
EXPORT_SYMBOL_GPL(visorchannel_write);