mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
device pointer is const now
This commit is contained in:
parent
c0e174505a
commit
e9ed73b929
@ -3469,7 +3469,11 @@ static const struct file_operations ddb_fops = {
|
||||
#if (KERNEL_VERSION(3, 4, 0) > LINUX_VERSION_CODE)
|
||||
static char *ddb_devnode(struct device *device, mode_t *mode)
|
||||
#else
|
||||
#if (KERNEL_VERSION(6, 2, 0) > LINUX_VERSION_CODE)
|
||||
static char *ddb_devnode(struct device *device, umode_t *mode)
|
||||
#else
|
||||
static char *ddb_devnode(const struct device *device, umode_t *mode)
|
||||
#endif
|
||||
#endif
|
||||
{
|
||||
struct ddb *dev = dev_get_drvdata(device);
|
||||
|
Loading…
Reference in New Issue
Block a user