mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
media: dvb-usb: make dvb_usb_device_properties const
This makes it possible to declare dvb_usb_device_properties const. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
96f3a93927
commit
d27958df93
@@ -184,10 +184,10 @@ static int dvb_usb_init(struct dvb_usb_device *d, short *adapter_nums)
|
||||
}
|
||||
|
||||
/* determine the name and the state of the just found USB device */
|
||||
static struct dvb_usb_device_description *dvb_usb_find_device(struct usb_device *udev, struct dvb_usb_device_properties *props, int *cold)
|
||||
static const struct dvb_usb_device_description *dvb_usb_find_device(struct usb_device *udev, const struct dvb_usb_device_properties *props, int *cold)
|
||||
{
|
||||
int i, j;
|
||||
struct dvb_usb_device_description *desc = NULL;
|
||||
const struct dvb_usb_device_description *desc = NULL;
|
||||
|
||||
*cold = -1;
|
||||
|
||||
@@ -242,13 +242,13 @@ int dvb_usb_device_power_ctrl(struct dvb_usb_device *d, int onoff)
|
||||
* USB
|
||||
*/
|
||||
int dvb_usb_device_init(struct usb_interface *intf,
|
||||
struct dvb_usb_device_properties *props,
|
||||
const struct dvb_usb_device_properties *props,
|
||||
struct module *owner, struct dvb_usb_device **du,
|
||||
short *adapter_nums)
|
||||
{
|
||||
struct usb_device *udev = interface_to_usbdev(intf);
|
||||
struct dvb_usb_device *d = NULL;
|
||||
struct dvb_usb_device_description *desc = NULL;
|
||||
const struct dvb_usb_device_description *desc = NULL;
|
||||
|
||||
int ret = -ENOMEM, cold = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user