fix build under linux 6.2

The signature for the devnode callback changed
to a const pointer.
This commit is contained in:
anna 2023-02-28 12:46:24 +01:00
parent eb27502c94
commit b38189d3c4
Signed by: fef
GPG key ID: EC22E476DC2D3D84

View file

@ -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);