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
5bfa228d71
commit
626aa6d7be
@ -3469,7 +3469,11 @@ static const struct file_operations ddb_fops = {
|
|||||||
#if (KERNEL_VERSION(3, 4, 0) > LINUX_VERSION_CODE)
|
#if (KERNEL_VERSION(3, 4, 0) > LINUX_VERSION_CODE)
|
||||||
static char *ddb_devnode(struct device *device, mode_t *mode)
|
static char *ddb_devnode(struct device *device, mode_t *mode)
|
||||||
#else
|
#else
|
||||||
|
#if (KERNEL_VERSION(6, 2, 0) > LINUX_VERSION_CODE)
|
||||||
static char *ddb_devnode(struct device *device, umode_t *mode)
|
static char *ddb_devnode(struct device *device, umode_t *mode)
|
||||||
|
#else
|
||||||
|
static char *ddb_devnode(const struct device *device, umode_t *mode)
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
struct ddb *dev = dev_get_drvdata(device);
|
struct ddb *dev = dev_get_drvdata(device);
|
||||||
|
Loading…
Reference in New Issue
Block a user