lkml.org 
[lkml]   [2011]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/4] [media] DVB: Make struct dvb_usb_device_description members const
Date
struct usb_device_id *s warm_ids and cold_ids are never modified.

Make the members const so the declarations of struct usb_device_id
can also be const.

Signed-off-by: Joe Perches <joe@perches.com>
---
drivers/media/dvb/dvb-usb/dvb-usb.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb.h b/drivers/media/dvb/dvb-usb/dvb-usb.h
index 76a8096..a8761ad8 100644
--- a/drivers/media/dvb/dvb-usb/dvb-usb.h
+++ b/drivers/media/dvb/dvb-usb/dvb-usb.h
@@ -71,8 +71,8 @@ struct dvb_usb_device_description {
const char *name;

#define DVB_USB_ID_MAX_NUM 15
- struct usb_device_id *cold_ids[DVB_USB_ID_MAX_NUM];
- struct usb_device_id *warm_ids[DVB_USB_ID_MAX_NUM];
+ const struct usb_device_id *cold_ids[DVB_USB_ID_MAX_NUM];
+ const struct usb_device_id *warm_ids[DVB_USB_ID_MAX_NUM];
};

static inline u8 rc5_custom(struct rc_map_table *key)
--
1.7.5.2.365.g5cfe4


\
 
 \ /
  Last update: 2011-05-27 07:35    [from the cache]
©2003-2011 Jasper Spaans