fix build under linux 6.2
The signature for the devnode callback changed to a const pointer.
This commit is contained in:
parent
eb27502c94
commit
b38189d3c4
1 changed files with 1 additions and 2 deletions
|
@ -67,7 +67,7 @@ static const struct file_operations keymash_fops = {
|
||||||
.read = keymash_read,
|
.read = keymash_read,
|
||||||
};
|
};
|
||||||
|
|
||||||
static char *keymash_devnode(struct device *dev, umode_t *mode)
|
static char *keymash_devnode(const struct device *dev, umode_t *mode)
|
||||||
{
|
{
|
||||||
if (mode)
|
if (mode)
|
||||||
*mode = 0444;
|
*mode = 0444;
|
||||||
|
@ -130,6 +130,5 @@ static void keymash_exit(void)
|
||||||
class_destroy(keymash_class);
|
class_destroy(keymash_class);
|
||||||
cdev_del(&keymash_cdev);
|
cdev_del(&keymash_cdev);
|
||||||
unregister_chrdev_region(keymash_dev, KEYMASH_MINOR_COUNT);
|
unregister_chrdev_region(keymash_dev, KEYMASH_MINOR_COUNT);
|
||||||
keymash_info("sayounara sekai UwU\n");
|
|
||||||
}
|
}
|
||||||
module_exit(keymash_exit);
|
module_exit(keymash_exit);
|
||||||
|
|
Loading…
Reference in a new issue