svn commit: r332259 - head/sys/dev/spibus
Ian Lepore
ian at FreeBSD.org
Sat Apr 7 22:21:07 UTC 2018
Author: ian
Date: Sat Apr 7 22:21:06 2018
New Revision: 332259
URL: https://svnweb.freebsd.org/changeset/base/332259
Log:
Cast the data pointer to the correct type for the data being accessed (as
opposed to one that accidentally worked on the one arch I test-compiled for
on my first try).
Reported by: np@, O. Hartmann <ohartmann at walstatt.org>
Pointy hat: ian@
Modified:
head/sys/dev/spibus/spigen.c
Modified: head/sys/dev/spibus/spigen.c
==============================================================================
--- head/sys/dev/spibus/spigen.c Sat Apr 7 21:31:09 2018 (r332258)
+++ head/sys/dev/spibus/spigen.c Sat Apr 7 22:21:06 2018 (r332259)
@@ -324,13 +324,13 @@ spigen_ioctl(struct cdev *cdev, u_long cmd, caddr_t da
error = spigen_transfer_mmapped(cdev, (struct spigen_transfer_mmapped *)data);
break;
case SPIGENIOC_GET_CLOCK_SPEED:
- error = spibus_get_clock(dev, (uintptr_t *)data);
+ error = spibus_get_clock(dev, (uint32_t *)data);
break;
case SPIGENIOC_SET_CLOCK_SPEED:
error = spibus_set_clock(dev, *(uint32_t *)data);
break;
case SPIGENIOC_GET_SPI_MODE:
- error = spibus_get_mode(dev, (uintptr_t *)data);
+ error = spibus_get_mode(dev, (uint32_t *)data);
break;
case SPIGENIOC_SET_SPI_MODE:
error = spibus_set_mode(dev, *(uint32_t *)data);
More information about the svn-src-all
mailing list