Skip to content

Commit

Permalink
Merge pull request thesofproject#100 from dnne184/devicedriver_fix
Browse files Browse the repository at this point in the history
teaching: labs: device_drivers: Fix typo
  • Loading branch information
razvand authored Apr 21, 2019
2 parents 8909edf + 0ca9614 commit 103bf88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/teaching/labs/device_drivers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ The following example shows an implementation for a ``ioctl`` function:
(struct my_device_data*) file->private_data;
my_ioctl_data mid;
sitch(cmd) {
switch(cmd) {
case MY_IOCTL_IN:
if( copy_from_user(&mid, (my_ioctl_data *) arg,
sizeof(my_ioctl_data)) )
Expand Down

0 comments on commit 103bf88

Please sign in to comment.