upstream: [media] rtl28xxu: constify demod config structs
authorAntti Palosaari <crope@iki.fi>
Sun, 13 Oct 2013 02:35:35 +0000 (23:35 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:55:04 +0000 (11:55 +0900)
Optimize a little bit from data to text.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/dvb-usb-v2/rtl28xxu.c

index c72c420..614d564 100644 (file)
@@ -513,7 +513,7 @@ err:
        return ret;
 }
 
-static struct rtl2830_config rtl28xxu_rtl2830_mt2060_config = {
+static const struct rtl2830_config rtl28xxu_rtl2830_mt2060_config = {
        .i2c_addr = 0x10, /* 0x20 */
        .xtal = 28800000,
        .ts_mode = 0,
@@ -524,7 +524,7 @@ static struct rtl2830_config rtl28xxu_rtl2830_mt2060_config = {
 
 };
 
-static struct rtl2830_config rtl28xxu_rtl2830_qt1010_config = {
+static const struct rtl2830_config rtl28xxu_rtl2830_qt1010_config = {
        .i2c_addr = 0x10, /* 0x20 */
        .xtal = 28800000,
        .ts_mode = 0,
@@ -534,7 +534,7 @@ static struct rtl2830_config rtl28xxu_rtl2830_qt1010_config = {
        .agc_targ_val = 0x2d,
 };
 
-static struct rtl2830_config rtl28xxu_rtl2830_mxl5005s_config = {
+static const struct rtl2830_config rtl28xxu_rtl2830_mxl5005s_config = {
        .i2c_addr = 0x10, /* 0x20 */
        .xtal = 28800000,
        .ts_mode = 0,
@@ -548,7 +548,7 @@ static int rtl2831u_frontend_attach(struct dvb_usb_adapter *adap)
 {
        struct dvb_usb_device *d = adap_to_d(adap);
        struct rtl28xxu_priv *priv = d_to_priv(d);
-       struct rtl2830_config *rtl2830_config;
+       const struct rtl2830_config *rtl2830_config;
        int ret;
 
        dev_dbg(&d->udev->dev, "%s:\n", __func__);
@@ -583,33 +583,33 @@ err:
        return ret;
 }
 
-static struct rtl2832_config rtl28xxu_rtl2832_fc0012_config = {
+static const struct rtl2832_config rtl28xxu_rtl2832_fc0012_config = {
        .i2c_addr = 0x10, /* 0x20 */
        .xtal = 28800000,
        .if_dvbt = 0,
        .tuner = TUNER_RTL2832_FC0012
 };
 
-static struct rtl2832_config rtl28xxu_rtl2832_fc0013_config = {
+static const struct rtl2832_config rtl28xxu_rtl2832_fc0013_config = {
        .i2c_addr = 0x10, /* 0x20 */
        .xtal = 28800000,
        .if_dvbt = 0,
        .tuner = TUNER_RTL2832_FC0013
 };
 
-static struct rtl2832_config rtl28xxu_rtl2832_tua9001_config = {
+static const struct rtl2832_config rtl28xxu_rtl2832_tua9001_config = {
        .i2c_addr = 0x10, /* 0x20 */
        .xtal = 28800000,
        .tuner = TUNER_RTL2832_TUA9001,
 };
 
-static struct rtl2832_config rtl28xxu_rtl2832_e4000_config = {
+static const struct rtl2832_config rtl28xxu_rtl2832_e4000_config = {
        .i2c_addr = 0x10, /* 0x20 */
        .xtal = 28800000,
        .tuner = TUNER_RTL2832_E4000,
 };
 
-static struct rtl2832_config rtl28xxu_rtl2832_r820t_config = {
+static const struct rtl2832_config rtl28xxu_rtl2832_r820t_config = {
        .i2c_addr = 0x10,
        .xtal = 28800000,
        .tuner = TUNER_RTL2832_R820T,
@@ -733,7 +733,7 @@ static int rtl2832u_frontend_attach(struct dvb_usb_adapter *adap)
        int ret;
        struct dvb_usb_device *d = adap_to_d(adap);
        struct rtl28xxu_priv *priv = d_to_priv(d);
-       struct rtl2832_config *rtl2832_config;
+       const struct rtl2832_config *rtl2832_config;
 
        dev_dbg(&d->udev->dev, "%s:\n", __func__);