Fix var name in cdev_alloc example

Merged
PW
3mo ago
+1-1

The cdev_alloc() example declares the variable as my_dev but assigns the ops field through my_cdev.

This change uses a consistent variable name throughout the example.


Summary by cubic

Use a consistent variable name in the cdev_alloc() example, renaming my_dev to my_cdev so allocation and ops assignment match. This avoids confusion for readers copying the snippet.