mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 22:02:58 -04:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue