Commit e8b46689 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] rtl28xxu: constify demod config structs

Optimize a little bit from data to text.
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 09143009
...@@ -516,7 +516,7 @@ static int rtl2832u_read_config(struct dvb_usb_device *d) ...@@ -516,7 +516,7 @@ static int rtl2832u_read_config(struct dvb_usb_device *d)
return ret; return ret;
} }
static struct rtl2830_config rtl28xxu_rtl2830_mt2060_config = { static const struct rtl2830_config rtl28xxu_rtl2830_mt2060_config = {
.i2c_addr = 0x10, /* 0x20 */ .i2c_addr = 0x10, /* 0x20 */
.xtal = 28800000, .xtal = 28800000,
.ts_mode = 0, .ts_mode = 0,
...@@ -527,7 +527,7 @@ static struct rtl2830_config rtl28xxu_rtl2830_mt2060_config = { ...@@ -527,7 +527,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 */ .i2c_addr = 0x10, /* 0x20 */
.xtal = 28800000, .xtal = 28800000,
.ts_mode = 0, .ts_mode = 0,
...@@ -537,7 +537,7 @@ static struct rtl2830_config rtl28xxu_rtl2830_qt1010_config = { ...@@ -537,7 +537,7 @@ static struct rtl2830_config rtl28xxu_rtl2830_qt1010_config = {
.agc_targ_val = 0x2d, .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 */ .i2c_addr = 0x10, /* 0x20 */
.xtal = 28800000, .xtal = 28800000,
.ts_mode = 0, .ts_mode = 0,
...@@ -551,7 +551,7 @@ static int rtl2831u_frontend_attach(struct dvb_usb_adapter *adap) ...@@ -551,7 +551,7 @@ static int rtl2831u_frontend_attach(struct dvb_usb_adapter *adap)
{ {
struct dvb_usb_device *d = adap_to_d(adap); struct dvb_usb_device *d = adap_to_d(adap);
struct rtl28xxu_priv *priv = d_to_priv(d); struct rtl28xxu_priv *priv = d_to_priv(d);
struct rtl2830_config *rtl2830_config; const struct rtl2830_config *rtl2830_config;
int ret; int ret;
dev_dbg(&d->udev->dev, "%s:\n", __func__); dev_dbg(&d->udev->dev, "%s:\n", __func__);
...@@ -586,31 +586,31 @@ static int rtl2831u_frontend_attach(struct dvb_usb_adapter *adap) ...@@ -586,31 +586,31 @@ static int rtl2831u_frontend_attach(struct dvb_usb_adapter *adap)
return ret; return ret;
} }
static struct rtl2832_config rtl28xxu_rtl2832_fc0012_config = { static const struct rtl2832_config rtl28xxu_rtl2832_fc0012_config = {
.i2c_addr = 0x10, /* 0x20 */ .i2c_addr = 0x10, /* 0x20 */
.xtal = 28800000, .xtal = 28800000,
.tuner = TUNER_RTL2832_FC0012 .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 */ .i2c_addr = 0x10, /* 0x20 */
.xtal = 28800000, .xtal = 28800000,
.tuner = TUNER_RTL2832_FC0013 .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 */ .i2c_addr = 0x10, /* 0x20 */
.xtal = 28800000, .xtal = 28800000,
.tuner = TUNER_RTL2832_TUA9001, .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 */ .i2c_addr = 0x10, /* 0x20 */
.xtal = 28800000, .xtal = 28800000,
.tuner = TUNER_RTL2832_E4000, .tuner = TUNER_RTL2832_E4000,
}; };
static struct rtl2832_config rtl28xxu_rtl2832_r820t_config = { static const struct rtl2832_config rtl28xxu_rtl2832_r820t_config = {
.i2c_addr = 0x10, .i2c_addr = 0x10,
.xtal = 28800000, .xtal = 28800000,
.tuner = TUNER_RTL2832_R820T, .tuner = TUNER_RTL2832_R820T,
...@@ -734,7 +734,7 @@ static int rtl2832u_frontend_attach(struct dvb_usb_adapter *adap) ...@@ -734,7 +734,7 @@ static int rtl2832u_frontend_attach(struct dvb_usb_adapter *adap)
int ret; int ret;
struct dvb_usb_device *d = adap_to_d(adap); struct dvb_usb_device *d = adap_to_d(adap);
struct rtl28xxu_priv *priv = d_to_priv(d); 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__); dev_dbg(&d->udev->dev, "%s:\n", __func__);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment