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@walstatt.org> Pointy hat: ian@
This commit is contained in:
parent
e973ad2298
commit
197d784bf3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=332259
@ -324,13 +324,13 @@ spigen_ioctl(struct cdev *cdev, u_long cmd, caddr_t data, int fflag,
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user