fix build under linux 6.2

The signature for the devnode callback changed
to a const pointer.
main
anna 1 year ago
parent eb27502c94
commit b38189d3c4
Signed by: fef
GPG Key ID: EC22E476DC2D3D84

@ -67,7 +67,7 @@ static const struct file_operations keymash_fops = {
.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)
*mode = 0444;
@ -130,6 +130,5 @@ static void keymash_exit(void)
class_destroy(keymash_class);
cdev_del(&keymash_cdev);
unregister_chrdev_region(keymash_dev, KEYMASH_MINOR_COUNT);
keymash_info("sayounara sekai UwU\n");
}
module_exit(keymash_exit);

Loading…
Cancel
Save