[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <16244c98130505591a0b037fa3c997116d103fe7.1306473714.git.joe@perches.com>
Date: Thu, 26 May 2011 22:30:59 -0700
From: Joe Perches <joe@...ches.com>
To: linux-kernel@...r.kernel.org, Jiri Kosina <trivial@...nel.org>
Cc: Mauro Carvalho Chehab <mchehab@...radead.org>,
Greg Kroah-Hartman <gregkh@...e.de>
Subject: [PATCH 3/4] [media] DVB: Make struct dvb_usb_device_description members const
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@...ches.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists